上一页 1 ··· 14 15 16 17 18
摘要: 1.通过HttpServletRequest获取数据 此方法:request.getParameter("loginName"),loginName为input的name属性 前端代码 后端代码 阅读全文
posted @ 2018-01-08 21:29 suwenyuan 阅读(610) 评论(0) 推荐(0) 编辑
摘要: onFocus事件就是当光标落在文本框中时发生的事件。 onBlur事件是光标失去焦点时发生的事件。 <form action="/chat" method="get"> <li> <input type="text" name="loginName" class="text" value="Use 阅读全文
posted @ 2018-01-08 21:16 suwenyuan 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 1.function aa() function aa()是定义的函数 function aa(){var a=5;}var c = aa(); //aa函数已经执行完,c 代表bb变量并没有被收回 2.aa:function() aa:function() 是在函数内部定义的函数方法,可以在函数内 阅读全文
posted @ 2018-01-04 15:31 suwenyuan 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 一、$(function(){}); $(document).ready(function(){})可以简写成$(function(){}); $(document).ready 里的代码是在页面内容都加载完才执行的,你直接写到script标签里,当页面加载完这个script标签就会执行里边的代码了 阅读全文
posted @ 2018-01-04 14:42 suwenyuan 阅读(1155) 评论(0) 推荐(1) 编辑
摘要: 博客处处:https://www.cnblogs.com/eric-qin/p/5209486.html JQuery的extend扩展方法: Jquery的扩展方法extend是我们在写插件的过程中常用的方法,该方法有一些重载原型。 一、Jquery的扩展方法原型是: extend(dest,sr 阅读全文
posted @ 2018-01-03 15:22 suwenyuan 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18