在写js时,里面有不少的单引号和双引号,能够直接转义app
imgHmtl += '<dl>'+ '<dt><img src="'+objUrl+'" id="img" /></dt>'+ '<dd onclick="delImg(this, "'+ident+'")"></dd>'+ '</dl>' ; $('#upLoadImg').append(imgHmtl); $('#upLoadImg').show();
转移符ide
"