以下jquery函数有什么用? [英] What is the use of following jquery function..
本文介绍了以下jquery函数有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下jquery函数的用途是什么..
我是jquery的新手..我想了解下面的函数..请帮助
What is the use of following jquery function..
I am new to jquery .. I wnat to understand following function..Please help
$(document).ready(function () {
$.ajax({
type: 'GET',
url: 'https://js.i-parcel.com', [^]
timeout: 15000,
success: function (data) { alert('Connected to i-parcel.'); },
error: function (XMLHttpRequest, textStatus, errorThrown)
{ alert('Error:\r\n' + textStatus); }
});
});
推荐答案
( document )。ready( function (){
(document).ready(function () {
.ajax({
type:' GET',
url:' https://js.i-parcel.com',[^]
超时: 15000 ,
成功:功能(数据){alert(' 已连接到i-parcel。'); },
错误: function (XMLHttpRequest,textStatus,errorThrown)
{alert('' 错误:\\\\ n' + textStatus); }
});
});
.ajax({ type: 'GET', url: 'https://js.i-parcel.com', [^] timeout: 15000, success: function (data) { alert('Connected to i-parcel.'); }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert('Error:\r\n' + textStatus); } }); });
Askur \m /建议jquery API文档提供您需要的所有信息。
As Ankur\m/ suggested jquery API documentation provides all the information you need.
这篇关于以下jquery函数有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文