随笔分类 -  Jquery

摘要:如果提示: $(...).ajaxSubmit is not a function 页面js出现TypeError: $(...).ajaxSubmit is not a function 错误。 解决办法是:将jQuery-form.js文件引入页面即可。 jquery-form.js 下载地址: 阅读全文
posted @ 2017-02-07 09:57 麦田守望者~ 阅读(5046) 评论(0) 推荐(0) 编辑
摘要:var pattern=/(^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$)|(^0{0,1}1[3|4|5|6|7|8|9][0-9]{9}$)/; if(pattern.test(val)) { return true; }else{ r 阅读全文
posted @ 2016-08-29 12:08 麦田守望者~ 阅读(1730) 评论(0) 推荐(0) 编辑
摘要:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <title>JavaScript禁止提交表单</title> <script type="text/javascript"> functi 阅读全文
posted @ 2016-08-29 09:58 麦田守望者~ 阅读(25485) 评论(1) 推荐(0) 编辑
摘要:alert($(window).height()); //浏览器时下窗口可视区域高度 alert($(document).height()); //浏览器时下窗口文档的高度 alert($(document.body).height());//浏览器时下窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器时下窗口文档body的总高... 阅读全文
posted @ 2016-07-28 10:41 麦田守望者~ 阅读(377) 评论(0) 推荐(0) 编辑
摘要:alert($(window).height()); //浏览器时下窗口可视区域高度 alert($(document).height()); //浏览器时下窗口文档的高度 alert($(document.body).height());//浏览器时下窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器时下窗口文档body的总高... 阅读全文
posted @ 2016-06-07 11:36 麦田守望者~ 阅读(413) 评论(0) 推荐(0) 编辑
摘要:https://github.com/ximan/dropload dropload a javascript implementation of pull to refresh and up to loadmore 移动端下拉刷新、上拉加载更多插件 背景介绍 (introduce) 年前把tab例 阅读全文
posted @ 2016-06-01 21:10 麦田守望者~ 阅读(493) 评论(0) 推荐(0) 编辑
摘要://文本框改变事件 $('.text_name').bind('input propertychange', function() { $('.text_div_all').css('display','none'); }); demo:http://jsfiddle.net/PVpZf/ 阅读全文
posted @ 2016-05-27 13:05 麦田守望者~ 阅读(254) 评论(0) 推荐(0) 编辑
摘要:张三3 张三1 张三2 //点击搜索框显示点击其他区域隐藏 $(do... 阅读全文
posted @ 2016-05-27 12:15 麦田守望者~ 阅读(1009) 评论(0) 推荐(0) 编辑
摘要:案例:http://www.runoob.com/jqueryui/example-autocomplete.html <input type="text" style="width:90%;margin-top: 40px;" placeholder="請輸入車場名稱或車場間稱" class="t 阅读全文
posted @ 2016-05-27 10:34 麦田守望者~ 阅读(125) 评论(0) 推荐(0) 编辑
摘要:下载:http://sc.chinaz.com/jiaoben/150427225380.htm http://sc.chinaz.com/jiaoben/150427225380.htm 阅读全文
posted @ 2016-05-03 21:53 麦田守望者~ 阅读(219) 评论(0) 推荐(0) 编辑
摘要:按起终点经纬度规划路线 阅读全文
posted @ 2016-04-29 22:43 麦田守望者~ 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-05 09:31 麦田守望者~ 阅读(237) 评论(0) 推荐(0) 编辑
摘要:var cat_id = getParamValue("cat_id"); if(cat_id == null){ cat_id = 1; } $("#brand_cat_ul a").removeClass("a_check"); $("#brand_cat_ul .a_"+cat_id).addClass("a_check"); ... 阅读全文
posted @ 2016-04-01 11:24 麦田守望者~ 阅读(1904) 评论(0) 推荐(0) 编辑
摘要:$("body").keydown(function(e) { if (event.which == "13") {//keyCode=13是回车键 //提交代码 } }); 阅读全文
posted @ 2015-10-10 17:35 麦田守望者~ 阅读(169) 评论(0) 推荐(0) 编辑
摘要:FormData 特别的:contentType: false, processData: false,这两个参数是必须的。缺少contentType: false,$_FILES值为空。缺少processData: false,FF... 阅读全文
posted @ 2015-09-30 11:13 麦田守望者~ 阅读(706) 评论(0) 推荐(0) 编辑
摘要:jQuery获取Select选择的Text和Value: 选择一项试试看语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").fi... 阅读全文
posted @ 2015-09-24 11:49 麦田守望者~ 阅读(129) 评论(0) 推荐(0) 编辑
摘要:$(function(){ $("#btn_code").click(function(){ var code=$("#active_code").text(); copyToClipboard(code); }); }); functi... 阅读全文
posted @ 2015-08-25 10:33 麦田守望者~ 阅读(292) 评论(0) 推荐(0) 编辑
摘要:http://layer.layui.com/ 阅读全文
posted @ 2015-07-31 11:19 麦田守望者~ 阅读(130) 评论(0) 推荐(0) 编辑
摘要:query = form.find('input,select,textarea').serialize(); $.post(target,decodeURIComponent(query)).success(function(data){ /**code...**/} 阅读全文
posted @ 2015-07-06 23:51 麦田守望者~ 阅读(177) 评论(0) 推荐(0) 编辑
摘要:var Reply_type_name=$("#Reply_type").find("option:selected").text(); 阅读全文
posted @ 2015-06-24 12:15 麦田守望者~ 阅读(146) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示