|
define(function(require) {
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var util = require("$UI/system/components/justep/common/common");
var Model = function() {
this.callParent();
};
// 点击内容,弹出全部内容
Model.prototype.textOutputClick = function(event) {
var a = event.bindingContext.$object;// 得到当前上下文数据
this.comp('popOverData').newData({// 将得到的数据添加到popOberData
defaultValues : [ {
'content' : a.val('content')
} ]
});
this.comp('textPopOver').show();// 弹出全部内容
};
//查看js代码
Model.prototype.showJsSource = function(event){
util.showSource({
self : this,
data : "demo/pcSample/text/articleList.js"
},true);
};
//查看源码
Model.prototype.sourceBtnClick = function(event){
util.showSource({
self : this,
type : true,
data : "demo/pcSample/text/articleList.w&xid=window"
},true);
};
return Model;
});
以上是JS代码
1.请问var util = require("$UI/system/components/justep/common/common");
这句话是什么意思
2.util.showsource 这个函数在哪里有详细的讲解 |
|