向Jquery.HTML添加文本
我想知道是否可以不使用append在html上添加文本。仅使用jquery html 我试过了,但没用向Jquery.HTML添加文本,jquery,Jquery,我想知道是否可以不使用append在html上添加文本。仅使用jquery html 我试过了,但没用 $('#inventoryQuantity').html(var,'text-html'); 是的,只需使用标准JavaScript连接程序+ $('#inventoryQuantity').html(var +'text-html'); 是的,只需使用标准JavaScript连接程序+ $('#inventoryQuantity').html(var +'text-html'); .t
$('#inventoryQuantity').html(var,'text-html');
是的,只需使用标准JavaScript连接程序
+
$('#inventoryQuantity').html(var +'text-html');
是的,只需使用标准JavaScript连接程序
+
$('#inventoryQuantity').html(var +'text-html');
.text(“text”),这也是为什么变量的原因..抱歉,var=variable和no text只是htmlNote,
var
是一个受限关键字,因此如果您试图命名变量,那么您可能会遇到语法错误,我明白了,那么j08691的答案应该会有帮助..text(“text”),还有为什么要使用var呢..对不起var=variable,没有文本只是htmlNote,var
是一个受限的关键字,所以如果你试图给变量命名,那么你很可能会遇到语法错误,我明白了,那么j08691的答案应该会有帮助。