随笔分类 -  前台开发工具类等

摘要:http://www.imooc.com/article/11369 阅读全文
posted @ 2017-12-14 15:00 ConfidentLiu 阅读(241) 评论(0) 推荐(0)
摘要:onUnload方法是在关闭窗口之后执行 onbeforeUnload方法是在关闭窗口之前执行 window.onbeforeunload= function(event) { return confirm("确定离开此页面吗?"); } window.onunload = function(eve 阅读全文
posted @ 2017-12-08 11:11 ConfidentLiu 阅读(27021) 评论(0) 推荐(0)
摘要:js获取父页面的元素可以用$(window.parent.document).find("#customer_id").val();这里的customer_id表示父页面某一个元素的id。比如:父页面有一个隐藏的input框<input id="customer_id" type="hidden" 阅读全文
posted @ 2017-12-08 10:21 ConfidentLiu 阅读(4570) 评论(0) 推荐(0)
摘要:(1)JQuery EasyUI 1.4.2 版本中的 DateTimeBox(时间日期输入框) 参考本地帮助文档。 (2)jquery.datetimepicker 单独使用的包 只为时间日期 参考 https://www.cnblogs.com/Lau7/p/5485216.html; http 阅读全文
posted @ 2017-11-23 10:03 ConfidentLiu 阅读(353) 评论(0) 推荐(0)
摘要:jsp中c标签的使用 核心标签库 它是JSTL中的核心库,为日常任务提供通用支持,如显示和设置变量、重复使用一组项目、测试条件和其他操作(如导入和重定向Web内容)。Core标签按功能可分为4种类型:1 变量维护:(1)<c:set>:设置变量值和对象属性。语法如下: <c:set value="值 阅读全文
posted @ 2017-11-22 10:05 ConfidentLiu 阅读(9594) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/woxueliuyun/article/details/51075272 阅读全文
posted @ 2017-11-12 21:41 ConfidentLiu 阅读(116) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/rickgreen/article/details/54943500 阅读全文
posted @ 2017-11-12 21:13 ConfidentLiu 阅读(176) 评论(0) 推荐(0)
摘要:http://www.jb51.net/article/51079.htm https://www.cnblogs.com/xuxiuyu/p/5989743.html 更详细 阅读全文
posted @ 2017-11-10 17:34 ConfidentLiu 阅读(163) 评论(0) 推荐(0)
摘要:http://www.jb51.net/article/49858.htm 、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、 (要注意的是div必须放到js前面才行) 一般情况下,如果给一个dom对象绑定同一个事件,只有最后一个会生效,比如: 阅读全文
posted @ 2017-11-10 17:19 ConfidentLiu 阅读(69292) 评论(0) 推荐(1)
摘要:window对象有以下方法: open close alert confirm prompt setTimeout clearTimeout setInterval clearInterval moveBy moveTo resizeBy resizeTo scrollBy scrollTo fin 阅读全文
posted @ 2017-11-09 17:34 ConfidentLiu 阅读(333) 评论(0) 推荐(0)
摘要:方法主要有三种 转换函数、强制类型转换、利用js变量弱类型转换。 1. 转换函数: js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Nu 阅读全文
posted @ 2017-11-08 10:54 ConfidentLiu 阅读(67188) 评论(0) 推荐(0)
摘要:(1)include指令 include指令告诉容器:复制被包含文件汇总的所有内容,再把它粘贴到这个文件中。 <%@ include file="Header.jsp"%> (2)include标准动作 <jsp:include page="Header.jsp"/> (3)采用JSTL <c:im 阅读全文
posted @ 2017-10-17 16:40 ConfidentLiu 阅读(7266) 评论(0) 推荐(0)
摘要:$.fn是指jquery的命名空间,加上fn上的方法及属性,会对jquery实例每一个有效,下面简单为大家介绍下jquery $.fn $.fx到底是怎么一回事 $.fn是指jquery的命名空间,加上fn上的方法及属性,会对jquery实例每一个有效。 如扩展$.fn.abc() 那么你可以这样子 阅读全文
posted @ 2017-09-20 14:33 ConfidentLiu 阅读(318) 评论(0) 推荐(0)
摘要:<a href="<a href="javascript :history.back(-1)">返回上一页</a>或<a href="javascript :;" onClick="javascript :history.back(-1);">返回上一页</a> 如果是用按钮做的话就是:<input 阅读全文
posted @ 2017-09-07 11:03 ConfidentLiu 阅读(4879) 评论(0) 推荐(0)