后台表单提交方式
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
define(['jquery', 'layer', 'form', 'message'], function($, layer, form) {
|
||||
define(['jquery', 'layer', 'message'], function($, layer) {
|
||||
var sent = {
|
||||
config: {
|
||||
keyName: 'sent_'
|
||||
},
|
||||
init: function(){
|
||||
form.api.bindevent($("form[role=form]"));
|
||||
if ($("form[role=form]").length > 0) {
|
||||
require(['form'], function(form){
|
||||
form.api.bindevent($("form[role=form]"));
|
||||
})
|
||||
}
|
||||
},
|
||||
msg: function(text, type){
|
||||
if (typeof type != 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user