layer.confirm('是否發起流程?', {
btn: ['確定', '取消'],
btn1: function () {
getValue(1, 2, 3, 4);
},
btn2: function () {
return;
}
});
改成如上代碼,即可解決同步問題