这样的写法是不正确的,因为$("#th").val(data[i].subject_stype)$("#tmmc").val(data[i].subject_scontent)是两个独立的函数调用,而html()函数只接受一个参数。如果你想要同时设置$("#th")$("#tmmc")的值,可以使用以下方式进行修改:

$("#th").val(data[i].subject_stype);
$("#tmmc").val(data[i].subject_scontent);

或者使用链式调用的方式,将两个函数调用链接在一起:

$("#th").val(data[i].subject_stype)
         .html($("#tmmc").val(data[i].subject_scontent));
td1html$#thvaldataisubject_stype$#tmmcvaldataisubject_scontent这样的写法可以吗请修改

原文地址: https://www.cveoy.top/t/topic/ibCS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录