摘要: var flag1,flag2,flag3,flag4,flag5,flag6=false; function val(obj) { var regBox = { /* regEmail : /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,//邮箱 */ regMo... 阅读全文
posted @ 2017-03-30 21:21 折腾青春 阅读(2619) 评论(0) 推荐(0) 编辑
摘要: //4设置访问成功返回的操作 xhr.onreadystatechange=function(){ if(xhr.readyState==4){ if(xhr.status==200){ var txt=xhr.responseText; ... 阅读全文
posted @ 2017-03-30 20:40 折腾青春 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: for(var i in maps){//通过定义一个局部变量i遍历获取map里面的所有key值 alert(maps[i]); //通过获取key对应的value值 } 阅读全文
posted @ 2017-03-30 17:16 折腾青春 阅读(26789) 评论(1) 推荐(1) 编辑