,而不是在标准的方式编写代码:jQuery的回调函数
$.get('test.xml',function(){
//manipulate the code here
})
我想这种方式把事情写代码更容易:
$.get('test.xml',callback(data));
function callback(data){
//manipulate with the data below...
}
但错误显示“数据不确定” , 我怎样才能解决这个问题?
感谢所有的答案和注释变量! – webberpuma 2010-07-01 15:35:37