我在plusReady里从后台获取数据如何给 把我获取的值赋值给levelPicker
ready一般会比plusReady先执行
$.plusReady(function () {
var url=AppUrl+'customerEdit';
$.getJSON(url, {}, function(data) {
console.log(data.belong_trade)
}); })
$.ready(function() {
var _getParam = function(obj, param) {
return obj[param] || '';
};
//普通示例
var levelPicker = new $.PopPicker();
levelPicker.setData([{
value: '1',
text: '新建客户'
}, {
value: '2',
text: '潜在客户'
}]);
})
0 个回复