Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试制作 WebRTC 演示,但出现以下错误
Unexptected token {
附上屏幕截图。请帮助解决此错误。
{content }这里的内容必须是 JavaScript 中的键值格式。问题是您试图创建一个语法无效的变量。
{content }
var inittiator = {{inittiator }};
必须像
var inittiator = { key:{internalkey:value}};// depth 2 var inittiator = { key: value};// depth 1