写法一:
JumpLogin() {var _this = this;_this.$layer.alert("注册完成,请登录", { closeBtn: 0 }, function(index) {//这里写回调函数的方法体_this.$layer.close(index); //关闭弹出框});}
写法二:
DomeTest() {var _this = this;_this.$layer.open({content: "<div>点击确认按钮回调事件</div>",yes: function(index, layero) {//这里写回调函数方法体_this.$layer.close(index); //关闭弹出框}});}