最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - JS Bin Warning: Bad escapement of EOL. Use option multistr if needed - Stack Overflow

programmeradmin9浏览0评论

That is a warning stemming from snippets like:

a="hello\
world"

Apparently JsBin does not support the line continuation character unless a specific option is set.

How to set the mentioned multi-string option?

Thanks.

That is a warning stemming from snippets like:

a="hello\
world"

Apparently JsBin does not support the line continuation character unless a specific option is set.

How to set the mentioned multi-string option?

Thanks.

Share Improve this question edited Jan 4, 2013 at 13:07 antonio asked Dec 27, 2012 at 11:35 antonioantonio 11.1k15 gold badges78 silver badges141 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 29

Don't know if you need this anymore, but use: /*jshint multistr: true */

Example:

/*jshint multistr: true */
var data = "multiline \
text \
here.";

It will simply remove warning.

发布评论

评论列表(0)

  1. 暂无评论