【发布时间】:2013-11-11 00:43:39
【问题描述】:
我有一个接受可选参数的 javascript 函数。这在Firefox 中运行良好,但在Google Chrome 中显示:-
Uncaught SyntaxError: Unexpected token =
我的代码,
function errorNotification(text = "Something went wrong!") {
$.pnotify({
title: 'Error',
text: text,
type: 'error'
});
}
我见过很多类似的问题,但我无法意识到我的问题。
【问题讨论】:
标签: javascript jquery google-chrome console pnotify