在这里,我想陷阱和警报或echo var值thisCount 问题是我无法显示value.I'd试了很多办法,但没有运气。如何在javascript中显示变量的值?
$(document).on("click", ".open-dialog", function() {
var thisCount = $(this).data('count');
//this place the code
$(".modal-body #count").val(thisCount);
});
您需要提供一个[MCVE],并学习如何使用代码格式化编辑#1的功能。 – Quentin
你可以使用'.html()' –
'alert(value)'? – jdmdevdotnet