js拼接到input里 如果有双引号 就显示不全的情况
function showHtml(str) {
$("#btn").html("<input value= " + str.replace(/\'/g, "'") + " />");//单引号
//$("#btn").html("<input value= " + str.replace(/\"/g, """) + " />");//双引号
}
function showHtml(str) {
$("#btn").html("<input value= " + str.replace(/\'/g, "'") + " />");//单引号
//$("#btn").html("<input value= " + str.replace(/\"/g, """) + " />");//双引号
}