该文被密码保护。 阅读全文
posted @ 2015-12-14 15:28 FinnYY 阅读(34) 评论(0) 推荐(0) 编辑
摘要: //设置或获取对象指定的文件名或路径。alert(window.location.pathname) //设置或获取整个 URL 为字符串。 alert(window.location.href);//设置或获取与 URL 关联的端口号码。alert(window.location.port) //... 阅读全文
posted @ 2015-12-14 15:25 FinnYY 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、HTML部分搜索">搜索2、JS部分function funsearch(basePath){ var seaval = $("#search").val(); window.location.href=basePath+'/search/'+seaval+'.htm... 阅读全文
posted @ 2015-12-12 22:11 FinnYY 阅读(131) 评论(0) 推荐(0) 编辑
摘要: //按回车登录 $(document).keyup(function(event){ if(event.keyCode ==13){ $("#loginbtn").trigger("click"); } }); 阅读全文
posted @ 2015-12-10 10:34 FinnYY 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1、设置localStorage//方法一localStorage.setItem("t1","1111111");//方法二localStorage.t1="1111111";//方法三localStorage['t1']="1111111";2、获取localStorage//方法一localS... 阅读全文
posted @ 2015-11-29 12:48 FinnYY 阅读(159) 评论(0) 推荐(0) 编辑
摘要: //全选 反选 $('#chkAll').on('click',function(){ $('input.chkbox').prop('checked',$(this).prop('checked')); }); $('input.chkbox').on('click',function() { $ 阅读全文
posted @ 2015-11-26 09:27 FinnYY 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。3.timeout: 要求为Number类型的参数... 阅读全文
posted @ 2015-11-12 16:42 FinnYY 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 身份证正则://身份证正则表达式(15位)isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/;//身份证正则表达式(18位)isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))... 阅读全文
posted @ 2015-11-12 16:38 FinnYY 阅读(274) 评论(0) 推荐(0) 编辑
摘要: var imgCut = { imgOpt : { imgPrototypeId : 'imgPrototype', imgViewId: 'imgView', cutBox: 'cut', ... 阅读全文
posted @ 2015-10-23 11:01 FinnYY 阅读(300) 评论(0) 推荐(0) 编辑
摘要: PHP部分 /*图片上传*/ public function upload1(){ $file = $_FILES['file']; $upload = new \Think\Upload();// 实例化上传类 $upload->maxSize =... 阅读全文
posted @ 2015-10-23 10:54 FinnYY 阅读(787) 评论(0) 推荐(0) 编辑