如何在jquery的.html()中添加两个变量

在ajax成功的过程中,我有两个变量,如何在.html()属性中添加此变量。

    $("#select_name").html();//"data.str & data.re are the variables
博詹德拉·拉尼雅

只需串联它:

$("#select_name").html(data.str+data.re);

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章