layer.confirm('是否发起流程?', {
btn: ['确定', '取消'],
btn1: function () {
getValue(1, 2, 3, 4);
},
btn2: function () {
return;
}
});
改成如上代码,即可解决同步问题