原创 RequestMapping定義只能爲字母
@RequestMapping(method = RequestMethod.GET,value={"l_{cityName:[a-zA-Z]+}"
原创 父級更新其下有多少子級,並更新數量
公司下有多少未刪除,已審覈的的公司網點 UPDATE energy_company t, (SELECT company_id, COUNT(1) total FROM energy_compan
原创 mybatis 使用in批量處理
WHERE id IN <foreach collection="search.ids" item="item" index="index" open="(" close=")" separator=","> #{i
原创 freemarker傳map類型,遍歷list取值
<#if firstType.childList??&& firstType.childList?size gt 0> <#assign y=0 /> <#assign varietylist1='varietylis
原创 輸入框填寫提示
$(document).ready(function() { $("#titlename").focus(function(){ if($(this).val() == this
原创 js一對多,添加屬性
<tr> <td height="24" class="bline"> <table width="900" border="0" cellspacing="0" cellpaddi
原创 freemarker 自定義循環次數
<#list 1..(softWare.degree?number)!0 as i><span class="star"></span></#list>
原创 echarts y 軸百分比
yAxis : [ { type : 'value',
原创 js 打開url
function openurl(url) { if (url.indexOf('http') != 0) { url = 'http://' + url; } window.open(url);
原创 tomcat配置解決中文亂碼
可以在tomcat中配置解決中文亂碼問題。方法如下: 在tomcat的conf文件夾下的conf中找到server.xml文件 再端口的那個地方 <Connector port="8081" protocol="HTTP/1.1" con
原创 Sublime Text2 多行編輯快捷鍵
鼠標選中多行,按下 Ctrl Shift L (Command Shift L) 即可同時編輯這些行; 鼠標選中文本,反覆按 CTRL D (Command D) 即可繼續向下同時選中下一個相同的文本進行同時編輯; 鼠標選中文本,按下 A
原创 echarts 畫柱狀圖
參考http://echarts.baidu.com/echarts2/doc/example/bar1.html <script type="text/javascript"> var flowQuatationCode =
原创 301跳轉
@RequestMapping(method = RequestMethod.GET, value = {"wjshq_{id:\\d*}.htm"}) public String quotation(@PathVariable("id
原创 contains 精確匹配
var firstoption =$("a:contains('1')").map(function(){ if ($(this).text() == "1") {
原创 IntelliJ IDEA 中文亂碼解決
http://jingyan.baidu.com/article/046a7b3ea33e25f9c27fa93d.html 1.打開IntelliJ IDEA 14.0安裝路徑,小編的安裝路徑爲:D:\Program Files\Jet