使用onclick报SyntaxError: identifier starts immediately after numeric literal

少了‘’

错误

onclick="onlineWatch(${row.title})"

正确

onclick="onlineWatch('${row.title}')"

原文地址:https://www.cnblogs.com/chenlove/p/8884106.html