Tea.context(function () { this.success = function () { teaweb.success("保存成功") } this.onSubmit = function (e) { e.preventDefault() e.stopPropagation() Tea.action("$").post().form(e.target).success(function () { Tea.Vue.success() }) } })