首页 > 技术文章 > 使用onclick报SyntaxError: identifier starts immediately after numeric literal
chenlove 2018-04-19 16:33 原文
少了‘’
错误
onclick="onlineWatch(${row.title})"
正确
onclick="onlineWatch('${row.title}')"