【发布时间】:2016-09-27 01:44:15
【问题描述】:
我收到一个错误:
missing terminator: " (for string starting at line 36)
当我将此字符串传递给.html.eex 文件中的func 参数时:
<%= render ProjectName.SnippetView, "doc_ready.html",
func: "if (smallScreen() == 'true') {
if ($(document).height() > 750) { <%#(2a)%>
$('.scrollTop.main').css({'display': 'flex'})
}
}"
%>
我已经尝试在每行的末尾使用""" """、\ 和<> 连接每个字符串行(在每行的开头和结尾使用")但没有成功.
【问题讨论】: