Chinaunix首页 | 论坛 | 博客
  • 博客访问: 108469
  • 博文数量: 40
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 423
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-15 11:55
文章分类

全部博文(40)

文章存档

2016年(36)

2015年(2)

2013年(2)

我的朋友

发布时间:2016-02-29 16:56:17

本文总结了使用Extjs,jquery,javascript进行ajax请求的方法,实际上,无论是使用extjs还是jquery,最终都是使用JavaScript中的XMLHttpRequest对象。ajax请求的参数一般包括:请求方式(post或get),请求的参数,请求成功或失败时的回调函数。点击(此处)折叠或打开Ext.Ajax.request({ .........【阅读全文】

阅读(1682) | 评论(0) | 转发(0)

发布时间:2016-02-23 14:41:54

console.log(typeof function(){return;});//functionconsole.log(typeof "a");//stringconsole.log(typeof 123);//numberconsole.log(typeof a);//undefinedconsole.log(typeof true);// booleanconsole.log(typeof NaN);//numberconsole.log(typeof !NaN);//booleanconsole.log(typeof {name:'大漠',age:'37'});//.........【阅读全文】

阅读(1395) | 评论(0) | 转发(0)

发布时间:2016-02-17 15:19:59

首先,我们会创建一个可在 cookie 变量中存储访问者姓名的函数:function setCookie(c_name,value,expiredays){var exdate=new Date()exdate.setDate(exdate.getDate()+expiredays)document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())}之后,我们要创建另.........【阅读全文】

阅读(1287) | 评论(0) | 转发(0)

发布时间:2016-02-17 14:40:08

RegExp是正则表达式的缩写RegExp对象有3个方法:test()、exec()、compile().test()test()方法检索字符串中的指定值,返回值是true或false例子:var patt1 = new RegExp("e");document.write(patt1.test("the best things in life are free"));结果:trueexec()exec()方法检索字符串中的指定值。返回值是被找到的值.........【阅读全文】

阅读(855) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

tkchks2013-07-26 18:26

回复  |  举报
留言热议
请登录后留言。

登录 注册