(1) var tr = "";
TR = ' <tr><td> bank transfer </td><td> ' +o_amount+ ' </td><td> ' +p_dt+ ' </td><td ></td><td></td><td></td><td> ' +p_hl_zh+ ' </td> <td> ' +p_u_zh+ ' & Lt;/td><td> ' +p_u_hm+ ' </td><td><a href= "javascript:void (0);" onclick= "DeleteCurrentRow ( This, ' +o_amount+ ') ' > Delete </a></td></tr> ';
$ ("#dataTR"). Append (tr);
(2) var img = "${applicationscope.rootpath}upload/payinput/" +imgs[i];
Images + = ' ";
var hh = ' <td id= ' ' +kk[1]+ ' "style=" position:relative; " > <a style=" Position:absolute; Margin-left: -20px; "href=" javascript:void (0) "title=" delete the picture "> </a> </td> ';
Decimal calculation: var total = parsefloat (total)-parsefloat (value);//And parseint
$ ("#total"). HTML (total.tofixed (2));//accurate to two decimal places
HTML page to add HTML code splicing string, and JS inside the decimal calculation