jQuery中通过ajax的get()函数读取页面的方法

首先介绍get()函数:

url,[data],[callback],[type]

参数说明:

url:待载入页面的URL地址

data:待发送 Key/value 参数。

callback:载入成功时回调函数。

type:返回内容格式,xml, html, script, json, text, _default。

首先建立testGet.php实例:

© 版权声明

相关文章

暂无评论

none
暂无评论...