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
对于同步代码和异步代码问题的理解
是返回对象的哈希码还是返回的返回的对象的哈希码?
update更新操作没有返回值吗? 更新没有返回值这样那在实际工作中怎么知道有没有更新成功呢??
如何返回上一步
相关分类