A similar question, I want to know how to deal with the number of correct answers. I originally wanted to declare a variable and then decide to add it when the answer is right, but not if it is wrong. But what is printed is always 0 and 1
A similar question, I want to know how to deal with the number of correct answers. I originally wanted to declare a variable and then decide to add it when the answer is right, but not if it is wrong. But what is printed is always 0 and 1
estimates that you declare variables in the loop, resulting in variable values being constantly reset
the answer upstairs can be very large. If you look at the code, most of the code is that the variable declaration position is not correct
this code, so there is no way to know the problem.
const total = 8; //
let answered = 0; //
let succeed = 0; //
// ...
there is an h5 page embedded in the encapsulated APP. After the function of issuing an order, how can I get the user s id to add the address and place the order ...
make an answer system, trigger the click event on the answer page (choose the correct answer), and add 1. No mistakes. Now the whole answer is finished. Jump to another page, that is, the answer completion page, how can I get the value of the correct ans...
the background gives me an interface to tell me the parameters to be passed, and how to click Save to save the address information entered by the user to the address list ...
when I click the button to select a region, there will be three addresses of provinces, cities and regions. I got the value through .html, but the parameters required by the background are separated by city and county. What do I do with the data segmen...
this is the HTML corresponding to this part ...
str+= < div class= "mui-input-row mui-radio mui-left " > ; str+= < label > set to default < label > ; str+= < input name= "radio1 " type= "radio " checked class= "moren " id= + data.data [I] .id + > str+= < div > use mui s butt...
console.log (pic) merchandise address this is the address of the printed picture http: www.zhani.com Uploads. $( .tu img ). Attr ( src , +pic+ ); how to put pic into it, ask for great help, try many ways are not correct ...
var uid = users.id; console.log(uid); ID console.log(returnCitySN["cip"]);ip if (uidsand undefined) {} $(function () { page rendering $.ajax ({) type: POST , dataType: "json", url: "URL ", data: {ip:returnCitySN [...
I m studying how to use vue in native app. I m going to read the weex document with weex for a while, but I still can t read it. Let s ask the masters how to add the dependency of weex to native app. Will you give me some advice from the gods who kn...
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...
after rendering with the data given in the background, when you jump between pages through a link or location, the page will flash to show the original fake data and style, and load the new page in an instant. How to solve this problem ...
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,...
the requirements are as follows: mac s notebook vscode version is 1.22.2 goole many methods can not install this plug-in has it been successfully installed? Please let me know how to realize it. Thank you . ...
wrote a registration login page in vue. Now the login successfully caches the data locally with localStorage, but I want to achieve a function, that is, if you enter APP, you can go directly to the home page of APP if you have already logged in. If you d...
divide the following strings into the array according to the rules. "Li Ming: 60; Xiaohua: 76; Xiaowen: 90; Xiaomei: 85; Zhang Hua: 68; Li Yang: 74; Tiantian: 90; Wang Qiang: 69; Xiaohe: 87; Liu Yang: 72 " var scoreinfos=":60; :76; :90; :85;...
introduce code into the nuxt page, because nuxt is not configured according to the official document, can you give me some advice ...