08 2017 档案

摘要:var flag = true; var title = $("#modal").find("input[name=groupname]").val(); /*获取分组列表*/ $.ajax({ method: 'get', url: '/groups/... 阅读全文
posted @ 2017-08-29 10:38 boyanh 阅读(1139) 评论(0) 推荐(0) 编辑
摘要:$("#modal").find(".btn-primary").unbind("click").click(function(){ var title = $("#modal").find("input[name=title]").val(); var intro = $("#modal").find("input[name=intro]").v... 阅读全文
posted @ 2017-08-21 11:18 boyanh 阅读(534) 评论(0) 推荐(0) 编辑
摘要:事实上stoppropagation和cancelBubble的作用是一样的,都是用来阻止浏览器默认的事件冒泡行为。 不同之处在于stoppropagation属于W3C标准,试用于Firefox等浏览器,但是不支持IE浏览器。相反cancelBubble不符合W3C标准,而且只支持IE浏览器。所以 阅读全文
posted @ 2017-08-19 15:03 boyanh 阅读(626) 评论(0) 推荐(0) 编辑
摘要:$.ajax({ type: "POST", url: url, data: $('.form-horizontal').serialize(), 提交form表单 success: function (data) { $(".knowledge-list").html(data); //close ... 阅读全文
posted @ 2017-08-17 17:08 boyanh 阅读(470) 评论(0) 推荐(0) 编辑
摘要:简化版 阅读全文
posted @ 2017-08-17 17:05 boyanh 阅读(206) 评论(0) 推荐(0) 编辑
摘要:$("#m-s-type").on("change",function(){ var id = $(this).find("option:selected").attr("data-id"); console.log(id) if(id==1){ } }) ... 阅读全文
posted @ 2017-08-16 15:39 boyanh 阅读(1353) 评论(0) 推荐(0) 编辑
摘要:$("#modal").keydown(function(e){ var e = e || event, keycode = e.which || e.keyCode; if (keycode==13) { $(".btn-primary").trigger("click"); } ... 阅读全文
posted @ 2017-08-07 09:55 boyanh 阅读(827) 评论(0) 推荐(0) 编辑

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