最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

我想問(wèn)一下這個(gè)代碼要怎么才能運(yùn)行出結(jié)果出來(lái)?我想問(wèn)的重點(diǎn)是引用包的那部分

我想問(wèn)一下這個(gè)代碼要怎么才能運(yùn)行出結(jié)果出來(lái)?我想問(wèn)的重點(diǎn)是引用包的那部分

慕碼人1183263 2016-11-08 11:05:53
我想問(wèn)一下要怎么才能使運(yùn)行我的這個(gè)html頁(yè)面出結(jié)果?我運(yùn)行了,但沒(méi)有結(jié)果//我的html頁(yè)面:<html><head>? <title>test demo</title></head><body>? <div id='a'></div>? <script ?type='text/javacript' ?src="nice.js">? </script></body></html>//我的js頁(yè)面:import React, {PropTypes} from "react";//重點(diǎn)是引用包是怎么回事?這樣引用了之后感覺(jué)沒(méi)用啊?這樣寫(xiě)了代碼之后要怎么操作才會(huì)有作用?能幫忙詳細(xì)的解釋嗎?謝謝!import {browserHistory, Link} from 'react-router'import {Form, Button, Input} from "antd";const FormItem = Form.Item;function noop() {? ? return false;}const formItemLayout = {? ? labelCol: {span: 7},? ? wrapperCol: {span: 12},};class SigninForm extends React.Component {? ? static propTypes = {? ? ? ? history: PropTypes.object.isRequired? ? };? ? static defaultProps = {? ? ? ? formStyle: {? ? ? ? ? ? width: "450px",? ? ? ? ? ? height: "380px",? ? ? ? ? ? margin: "auto",? ? ? ? ? ? background: "fff",? ? ? ? ? ? paddingTop: "120px"? ? ? ? }? ? };? ? handleSubmit(e) {? ? ? ? e.preventDefault();? ? ? ? const value = this.props.form.getFieldsValue();? ? ? ? this.props.action.signin(value);? ? }? ? componentWillReceiveProps(nextProps) {? ? ? ? if (this.props.sign !== nextProps.sign) {?? ? ? ? ? ?const user = nextProps.sign.get('user');? ? ? ? ? ? if (user && user !== this.props.sign.get('user')) {? ? ? ? ? ? ? ? browserHistory.push('/console/')? ? ? ? ? ? } else if (nextProps.sign.has('signinError')) {? ? ? ? ? ? ? ? this.props.form.setFieldsValue({password: ''});? ? ? ? ? ? ? ? window.alert(nextProps.sign.getIn(['signinError', 'errMsg']));? ? ? ? ? ? }? ? ? ? }? ? }? ? render() {? ? ? ? const {getFieldDecorator} = this.props.form;? ? ? ? return (? ? ? ? ? ? <Form style={this.props.formStyle} horizontal onSubmit={this.handleSubmit.bind(this)}>? ? ? ? ? ? ? ? <FormItem? ? ? ? ? ? ? ? ? ? {...formItemLayout}? ? ? ? ? ? ? ? ? ? label="用戶名"? ? ? ? ? ? ? ? ? ? hasFeedback>? ? ? ? ? ? ? ? ? ? {getFieldDecorator('account', {})(? ? ? ? ? ? ? ? ? ? ? ? <Input />? ? ? ? ? ? ? ? ? ? )}? ? ? ? ? ? ? ? </FormItem>? ? ? ? ? ? ? ? <FormItem? ? ? ? ? ? ? ? ? ? {...formItemLayout}? ? ? ? ? ? ? ? ? ? label="密碼"? ? ? ? ? ? ? ? ? ? hasFeedback>? ? ? ? ? ? ? ? ? ? {getFieldDecorator('password', {? ? ? ? ? ? ? ? ? ? ? ? rules: [? ? ? ? ? ? ? ? ? ? ? ? ? ? {required: true, whitespace: true, message: '請(qǐng)?zhí)顚?xiě)密碼'}? ? ? ? ? ? ? ? ? ? ? ? ],? ? ? ? ? ? ? ? ? ? })(? ? ? ? ? ? ? ? ? ? ? ? <Input type="password" autoComplete="off"? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?onContextMenu={noop} onPaste={noop} onCopy={noop} onCut={noop}/>? ? ? ? ? ? ? ? ? ? )}? ? ? ? ? ? ? ? </FormItem>? ? ? ? ? ? ? ? <FormItem wrapperCol={{span: 12, offset: 7}}>? ? ? ? ? ? ? ? ? ? <Button type="ghost"? ? ? ? ? ? ? ? ? ? ? ? ? ? onClick={e => browserHistory.push('/console/sign/signup')}>沒(méi)有創(chuàng)建?創(chuàng)建</Button>&nbsp;&nbsp;? ? ? ? ? ? ? ? ? ? <Button type="primary" htmlType="submit">登錄</Button>? ? ? ? ? ? ? ? </FormItem>? ? ? ? ? ? </Form>? ? ? ? )? ? }}SigninForm = Form.create({})(SigninForm);export default SigninForm;
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 2995 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)