Adding JavaScript ES6 to Dreamweaver CS6

≡放荡痞女 提交于 2019-12-04 02:48:42

问题


How do I make it so that Dreamweaver CS6 doesn't give me a syntax error when I use let instead of var?


回答1:


The "Edit > Preferences > Linting then Edit the JS file" is a bogus answer, there is no "linting" option in the preferences of Dreamweaver CS6. The "linting" feature wasn't added until Creative Cloud. It is unlikely that there will be a patch, Adobe wants you to switch to a subscription-based version instead.

Screenshot of Dreamweaver settings




回答2:


Ok, just go to: Edit > Preferences > Linting then Edit the JS file.

add this property:

"esversion" : 6

This helped me.



来源:https://stackoverflow.com/questions/45822265/adding-javascript-es6-to-dreamweaver-cs6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!