jjzjj

popupTest

全部标签

javascript - 单引号内Javascript双引号的字符串问题

这是我的代码:functionpopupTest(title){alert(title);returnfalse;}Recommend使用Firefox4我得到错误:Error:missing)afterargumentlistSourceCode:returnpopupTest('Thisis'some'"test"string')它就像是在解码HTML实体,但我不知道为什么。也试过...Recommend给出错误:Error:unterminatedstringliteralSourceCode:returnpopupTest('Thisis\'some\'\