摘要: 1 var _createHttpRequest = function () { 2 var obj; 3 if (window.XMLHttpRequest) obj = new XMLHttpRequest(); 4 else if (window.ActiveXObject) { 5 try { 6 obj =... 阅读全文
posted @ 2016-12-27 15:10 wuln 阅读(120) 评论(0) 推荐(0)
摘要: function isIP(str) { var IP = '(25[0-5]|2[0-4]\\d|1\\d\\d|\\d\\d|\\d)'; var IPdot = IP + '\\.'; var isIPaddress = new RegExp('^' + IPdot + IPdot + IPdot + IP + '$'); return (isI... 阅读全文
posted @ 2016-12-27 14:02 wuln 阅读(142) 评论(0) 推荐(0)
摘要: function isEmail(s) { var reg = /^([a-zA-Z0-9\_\-\.])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,10}){1,9})$/; if (reg.test(s) === false) { return false; } return true; } 阅读全文
posted @ 2016-12-27 13:54 wuln 阅读(163) 评论(0) 推荐(0)
摘要: function isURL(str_url) { var strRegex = "^((https|http|ftp|rtsp|mms)?://)" + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP ... 阅读全文
posted @ 2016-12-27 13:51 wuln 阅读(157) 评论(0) 推荐(0)
摘要: function isPhoneNumber(s) { var reg = /^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)){1,12})+$/; if (reg.test(s) === false) { return false; } return true; } 阅读全文
posted @ 2016-12-27 13:36 wuln 阅读(118) 评论(0) 推荐(0)
摘要: //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X 阅读全文
posted @ 2016-12-27 11:23 wuln 阅读(124) 评论(0) 推荐(0)
摘要: 向一个远程服务器发送HTTP请求. Ajax服务器请求是异步的, 所以对响应数据的处理需要使用回调函数来实现. 阅读全文
posted @ 2016-12-27 11:17 wuln 阅读(412) 评论(0) 推荐(0)
摘要: Ext.Component是所有Ext组件的基类,所有组件被注册在布局管理器中Ext.ComponentManager, 这样就可以通过Ext.getCmp随时被引用,每种组件都有特定的类型,是Ext自身设置的类型。 对xtype检查的相关方法有getXType、isXType。 阅读全文
posted @ 2016-12-27 11:00 wuln 阅读(127) 评论(0) 推荐(0)
摘要: 1、显示html 2、显示iframe 阅读全文
posted @ 2016-12-26 17:32 wuln 阅读(244) 评论(0) 推荐(0)
摘要: eg: 阅读全文
posted @ 2016-12-26 10:48 wuln 阅读(144) 评论(0) 推荐(0)