This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).mousedown(function(){ | |
//要做的事件 | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<th> | |
<td>1</td> | |
<td>2</td> | |
<td>3</td> | |
</th> | |
<tr> | |
<td colspan = "2" >a</td> | |
<td>b</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
点击Window--->show View-->Debug-->Breakpoints点击 | |
在出现的breakpoints界面中如果有内容证明有断点 否则没有没有断点 | |
如果有断点:直接点击右键 删除所有断点(Remove ALL)即可。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jsp:include page="include/top.jsp"> | |
<jsp:param value="new" name="tag"/> | |
</jsp:include> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = new String(name.getBytes("ISO8859-1"),"UTF-8"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String showJson() throws IOException { | |
user = new User(); | |
user.setId(1001); | |
user.setPassword("000000"); | |
user.setUsername("tom"); | |
response.setContentType("application/json;charset=UTF-8"); | |
Gson gson = new Gson(); | |
PrintWriter out = response.getWriter(); | |
out.print(gson.toJson(user)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var href = "<%=basePath %>contact/findByTag.action?tagName=" + tagName;//需要改变的地址名称 | |
history.pushState({ path: this.path }, '', href); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//根据选中的长度来判断是否有选中的,真是个不错的办法 | |
if($(".check:checked").length == 0) { | |
hideChoose(); | |
} else { | |
showChoose(); | |
} | |
$(".check:checked")//所有选中的复选框 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var date = [{"name":"不错"},{"name":"全选"},{"name":"还好"},{"name":"你好"}] | |
for(var i = 0 ; i < date.length; i ++) { | |
date[i].name//得到每个name值 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit; | |
import java.util.Random; | |
import java.util.TimeZone; | |
import com.kaishengit.pojo.User; | |
import com.kaishengit.util.DateUtil; | |
import hirondelle.date4j.DateTime; |