now you want to dynamically name the variable BMResulteArr_ variable
what to do?
now you want to dynamically name the variable BMResulteArr_ variable
what to do?
upstairs two big gods solve, generally rarely you operate like that, of course, if you want, you can achieve through the eval method, this method supports a parameter, pass in a string, will run the string, such as eval ('var param = "123";'); alert (param); so it will directly run the parameter string, parsed as a variable assignment.
however, it is recommended to encapsulate it in an object, so that it is relatively convenient to call, easy to set up, easy to manage, and so on.
encapsulate variables in objects
JS <br>`var ps_act_num = $('.ps_act').length;
form_data.append('ps_act_num', ps_act_num);
for(var i=1;i<=ps_act_num;iPP){
var act_content = 'act_content'+i;
var act_content_id = '-sharptextPsP5a_'+i;
var act_content_val = $(act_content_id).val();
if(act_content_val !== ''){
form_data.append(act_content, act_content_val);
}
var act_get = 'act_get'+i;
var act_get_id = '-sharptextPsP5b_'+i;
var act_get_val = $(act_get_id).val();
if(act_get_val !== ''){
form_data.append(act_get, act_get_val);
}
}`
directly above the picture, how to take this top value ...
the only thing I can think of now is to save the current canvas to an array every time I finish drawing, and then take it out of the array when I undo it ...
the scheduling page clicks the order to enter the order details. When you return to the scheduling page, you will request data rendering again. Now you want to return to the previous page without rendering. cannot be cached using keep-alive, and activa...
use canvas to draw a chart, but how to implement an adaptive browser ...
recently, if you want to make a table, you need to fix the header and display the first two columns, because the table has a large number of columns, and the width of the table is more than 7000 px. then I have to do fixed two-column positioning. Calcul...
jq gets the date and week of the last seven days, for example: ...
< H2 > encounter an image track that needs to be similar to the figure in a project < H2 > what UI should be used for video tracks like this in the front end, and what common libraries are there < H1 > Thank you! < H1 > ...
The framework is an iview,table component that renders the colorpicker component with the render function. However, an error is reported, indicating that the component is not registered. Code on I commented out the render function, and the compon...
suddenly came up with a question: can I use the false of confirm to cancel the switching of option under select? ` < select name= " " id= "sel " > <option selected value="">coder s life< option> <option value=""&g...
can Wechat Xiaocheng tcp link to intranet devices? ...
how to use flv.js to make a live video http-flv vue? ...
We found that sometimes browsers get stuck, especially in the case of a code loop, so we wonder if there is JS code running. at present, we have two ways to judge: 1. Add console.log output everywhere, and then see if the output is continuous 2. Che...
now I need to realize the effect of flipping books in a single-page mobile application based on vue. Can I only play pictures? can I put the introduced components ?...
-- there are new compatible methods. I haven t done mobile for too long. I d like to consult some optimization methods of mobile ....
problem recovery: I used the vant ui library to develop the mobile end. When I used css module in the vue single-text component, I changed the internal class style of vant, which had no effect. But my custom class has changed correctly. (1) when I che...
when the vue page jumps to the page, the scroll bar is always in the middle (only ios will be in the middle), 0 , there are great gods who encounter the same problems, please show us the way ...
In the video.js used for , two video colleagues play on one page, the progress bar can be replayed at 4:32 seconds when you drag the progress bar, and the progress bar of the other video can be dragged normally. I m a little confused. God s advice ...
it looks like this without sliding at first, as shown in figure ,: ask the gods, how do you do this? ...
how to use the front end to implement a multi-touch handle? ...
app.title = ring graph ; option = { tooltip: { trigger: item , formatter: "{a} <br >{b}: {c} ({d}%)" }, legend: { orient: vertical , x: left , data:[ ffffffffffffffffffffffffffffffffffffffffffffffffffff...