摘要:
$.ajax()方法详解 jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和del 阅读全文
posted @ 2016-06-07 16:40
无天666
阅读(302)
评论(0)
推荐(0)
摘要:
数据类型判断可以通过一元操作符typeof,此操作符可以判断大部分JS数据类型。 也可以通过instanceof来判断。如: var a = []; alert(typeof a); // object alert(a instanceof Array); //return true 数据类型判断可 阅读全文
posted @ 2016-06-07 14:42
无天666
阅读(24087)
评论(0)
推荐(0)
摘要:
/*========================================= 函数功能:获取浏览器类型 =========================================*/ function getBrowser() { var type = "pc" var ua = navigator.userAgent.toLowerCase(); ... 阅读全文
posted @ 2016-06-07 11:27
无天666
阅读(865)
评论(0)
推荐(0)

浙公网安备 33010602011771号