the code in es6 wants to print an error
function* add(){
yield "hello";
yield "world";
return "encoding";
}
let ad=add();
console.log(ad.next())
console.log(ad.next())
console.log(ad.next());
console.log(1)
function* add(){
yield "hello";
yield "world";
return "encoding";
}
let ad=add();
console.log(ad.next())
console.log(ad.next())
console.log(ad.next());
console.log(1)
Babel does not translate all the new features of ES6 into ES5 code, and generator is one of them that cannot. The reason is here: https://www.zhihu.com/questio...
to achieve your goal, you need to introduce additional polyfill, take a look at babel-dplyfill . But generally speaking, polyfill is large and requires a trade-off.
how to upload a preview of a single image in react. For mobile, ant design is used. mobile framework is just a novice, can give a specific code ...
submit=(e)=>{ e.preventDefault(); let value=this.props.form.getFieldValue( key )+this.props.from.getFieldValue( replytext ); alert(value); } render() { const { getFieldProps } = this.props.form; ret...
routing: < Route path= " datareport :name " component= {ReportIndex} > < Route > ; receive: `componentWillMount () { document.title=""+this.props.params.name; }` access: Why does http: localhost:3000 datareport 3 make an error sayi...
dva creates a project, what are the specific functions of those configuration files how to use ant design mobile in it ...
{...getFieldProps( key ,{ rules: [ { required: true, message: }, { whitespace: true }, ], })} .g...
{...getFieldProps( key ,{ rules: [ { required: true, message: }, { validator: this.validateKey }, ], })} only entering spaces also passed,...
introduce code into the nuxt page, because nuxt is not configured according to the official document, can you give me some advice ...
my code was obtained by wxlogin. ...
the default addition to the desktop is the home page. Can you add the currently read page to the desktop shortcut? ...
how to realize the shadow effect of inner concave band. ...
want to use input to enter the time (format 00:00). If you fill in 8:45, fill in 0 before, and fill in automatically in the middle:, now there are more than one after: the front does not automatically fill 0 <div class="layui-inline"> ...
writes a ripple component, and then is used on the reservation button . The click event of the reservation button is invalid in Firefox, and there is no response to the click. other browsers are normal . ...
have you ever encountered the click event of the app embedded vue page @ click, and then the route jump this.$router.push did not respond. Click on the event, that is, this.$router.push can not jump, the this.$router.replace method does not respond, with...