当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | <script>
var webUrl = {
"show1Url" : "{{ url('address/list1') }}" ,
"show2Url" : "{{ url('address/list2') }}" ,
"show3Url" : "{{ url('address/list3') }}"
};
function getData() {
$.get(webUrl.show1Url,
function (json){
console.log(json);
});
}
function postData(v1) {
$.ajaxSettings.async = true;
$.post(webUrl.show2Url,
{
"id" :v1
},
function (json){
console.log(json);
});
}
function fullData(id) {
$.ajax({
async:false,
type: "POST" ,
url: webUrl.show3Url,
dataType: "json" ,
data: { "id" :id},
success: function (json) {
console.log(json);
},
error: function () {
console.log( "请求失败" );
}
})
}
</script>
|
以上就是jquery的常用方法有哪些的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
jQuery怎么判断节点是否存在?
jQuery 怎么让a不跳转
jQuery有克隆方法吗?
jQuery 如何判断iframe是否加载完成
jQuery如何用this选择子元素
jQuery如何判断滚动条是否到底部
jQuery中$符号的作用是什么?
jQuery怎么判断字符串是否包含子串
jQuery内容过滤选择器有哪些
浅谈jQuery多库冲突问题的几种解决方法
更多相关阅读请进入《jQuery》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » jquery的常用方法有哪些