02 2016 档案

摘要:import java.util.List;import java.util.Map;import net.sf.json.JSONArray;import net.sf.json.JSONObject;import net.sf.json.JsonConfig;import net.sf.json 阅读全文
posted @ 2016-02-27 21:26 fanblog 阅读(600) 评论(0) 推荐(0)
摘要:1.区别: bind方式,进入外部区域和内部区域都会触发相关方法(methodA 或methodB); hover方式,进入内部区域不会再触发相关方法。 2.example: <body> <div class="outer" id="outer1"> Outer 1 <div class="inn 阅读全文
posted @ 2016-02-23 10:47 fanblog 阅读(312) 评论(0) 推荐(0)
摘要:1. example: <!DOCTYPE HTML><html> <head></head> <body> <div id="chan">click me again!!</div> <script type="text/javascript" src="jquery.js"></script> 阅读全文
posted @ 2016-02-23 10:02 fanblog 阅读(202) 评论(0) 推荐(0)
摘要:1.create a dynamic web project 2.import the needed jar(about 11) 3. request page(index.jsp) 4.result page(helloStruts2.jsp) 5.web.xml 6.struts.xml(cla 阅读全文
posted @ 2016-02-22 22:26 fanblog 阅读(229) 评论(0) 推荐(0)
摘要:1.通过在事件名称后面添加以点号分隔的后缀来为事件名称指派命名空间 $("#button").bind("click.editMode",function(){}); $("#buttonM").bind("click.editMode",function(){}); 2.再通过unbind解除该组 阅读全文
posted @ 2016-02-22 18:47 fanblog 阅读(416) 评论(0) 推荐(0)
摘要:code display :: <!DOCTYPE HTML><html> <head> <link href="bootstrap.css" rel="stylesheet"> </head> <body> <div class="table-responsive"> <table class=" 阅读全文
posted @ 2016-02-22 16:49 fanblog 阅读(298) 评论(0) 推荐(0)
摘要:<div class="replacedDiv">this is the replaced div</div> <script> $(function(){ $("div.replacedDiv").after("<p>i will replace the div</p>").remove(); } 阅读全文
posted @ 2016-02-22 13:38 fanblog 阅读(799) 评论(0) 推荐(1)
摘要:1.not(expression) 根据表达式参数的值,从包装集里删除元素 example : $('img[alt]').not('[alt*=joy]') 返回包含属性alt的img元素,但img的alt属性中含有joy的除外 2.note : not()方法不支持元素选择器 ,上面的语句如果写 阅读全文
posted @ 2016-02-19 13:50 fanblog 阅读(1143) 评论(0) 推荐(0)
摘要:1. jquery filter(condition) : 过滤指定对象中符合条件的元素; 2. jquery end() : 回到原来的操作对象 3. example : <body> <div id="someParentDiv"></div> <script type="text/javasc 阅读全文
posted @ 2016-02-19 12:36 fanblog 阅读(188) 评论(0) 推荐(0)
摘要:方式: 通过拓展在调用$()时返回的包装器 1.将函数绑定到$.fn $.fn.disable = function(){ return this.each(function(){ if (typeof this.disabled != 'undefined') this.disabled = tr 阅读全文
posted @ 2016-02-18 13:57 fanblog 阅读(210) 评论(0) 推荐(0)
摘要:1.window 的 onload 机制只指定一个函数,且在页面DOM及静态资源加载完之后执行; window.onload = function(){ alert(); } 2.$(document).ready(function(){});或者(缩写形式) $(function(){})可以多次 阅读全文
posted @ 2016-02-18 13:27 fanblog 阅读(206) 评论(0) 推荐(0)
摘要:1. create system variable 2. edit the system path note: ;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; 3. create classpath note: .;%JAVA_HOME%\lib;%JAVA_HOME%\ 阅读全文
posted @ 2016-02-16 16:39 fanblog 阅读(497) 评论(0) 推荐(0)
摘要:open the url :: http://dev.mysql.com/downloads/file/?id=461109 and click the location "no thanks..." 阅读全文
posted @ 2016-02-15 14:51 fanblog 阅读(173) 评论(0) 推荐(0)