2016-01-05 106 views
3

Java Nashorn支持JavaScript template stringsJava Nashorn - 模板字符串

我想var a = `this is a \n multiline string \n `當出現以下錯誤: javax.script.ScriptException: <eval>:1:22 Expected an operand but found error

+1

它看起來像模板字符串不支持....他們正在使用一種叫做dustjs ....檢查出來.... http: //www.leveluplunch.com/blog/2014/06/09/compile-load-render-dustjs-template-java-nashorn/ – binbash

回答