js拼接字符串,id= onclick=(参数1,参数2)

 '<td><input type=\"text\" id=\"sortnumberinput-'+i+'\" value=\"'+obj[i].sortnumber+'\" style=\"width:40%;color:darkgreen;\">
<button style=\"width:50%;\" onclick=\"changeSortNumber(\'' + obj[i].titletypeid + '\',\''+i+'\');\">更改</button></td>' +

  

猜你喜欢

转载自www.cnblogs.com/Koaler/p/12624885.html