|

楼主 |
发表于 2017-4-14 18:01:12
|
显示全部楼层
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
require("./third/jquery-1.11.1.min");
require("./third/data");
require("./third/jquery.city.select");
var Model = function() {
this.callParent();
// 加载UI2下, 不符合AMD规范的文件
var path = "./third/data";
var path2 = "./third/jquery.city.select";
var path3 = "./third/jquery-1.11.1.min";
require([ path, path2,path3], function() {
// 使用jQuery City Select插件方式
require([ 'city.select' ], function($) {
$(function() {
$('#province, #city').citylist({
data : data,
id : 'id',
children : 'cities',
name : 'name',
metaTag : 'name'
});
});
});
require([ 'jquery' ], function($) {
$(function() {
var text = $('form').serialize();
console.log(text);
});
});
});
};
return Model;
});
这样写也不行,不知道起步老师能不能给点提示? |
|