这是来自以下片段的警告:
a="hello\
world"
显然 JsBin 不支持续行符,除非设置了特定的选项。
如何设置提到的多字符串选项?
谢谢。
最佳答案
不知道你是否需要这个了,但是使用:/*jshint multistr: true */
例子:
/*jshint multistr: true */
var data = "multiline \
text \
here.";
它只会删除警告。
关于javascript - JS Bin 警告 : Bad escapement of EOL. 如果需要使用选项 multistr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14054021/