SCRIPT1006: 必須要有 ')'
納悶的是我 CODE 有啊!! 明明有右括號...
function msg(vtext, vtype="warning", vlayout="topRight")
{
必須改
function msg(vtext, vtype, vlayout)
{
if (!vtype) vtype="warning";
if (!vlayout) vlayout="topRight";
好無言的雷 bug...
參考資料:
https://stackoverflow.com/questions/38429977/expected-js-error-in-ie-after-assigning-a-value-to-a-function-argument