function test() {
$.ajax({
url:xxx,
type:'GET',
success:function(data) {
data:data;
function employee(data) {
this.customer = function(){console.log(data)}
}
return new employee(data);
}
})
}
var p = new test()
p.customer()//没有找到employee这个方法 想这样调用需要怎么做?
慕容3067478
相关分类