无法获得正确的报价

时间:2012-07-05 04:36:39

标签: javascript quotes

我很难在此代码中获取引号。不要工作所以我猜测引号是错误的。

html+='<img src="' + noteDirectory + '"/ "' + currentNote + '".png>'";

3 个答案:

答案 0 :(得分:3)

你需要的是:

html+='<img src="' + noteDirectory + '/' + currentNote + '.png">';

更好的方法是:在"之后和src=与最后.png

之间需要>

答案 1 :(得分:1)

你走了:

html += '<img src="' + noteDirectory + '/' + currentNote + '.png">';

答案 2 :(得分:0)

html+='<img src="' + noteDirectory + '/' + currentNote + '.png">';
相关问题