1.FireFox禁缓存
在地址栏中打"about:config";找到"network.http.use-cache";
双击它直至它变为"False"
2.Eclipse
trl+shift+x 转为大写
ctrl+shift+y 转为小写
3.Excel VBA编程 批量替换超链接
Sub ReplacePartHyperlinkAddress()
Dim hLink As Hyperlink
Dim wSheet As Worksheet
For Each wSheet In Worksheets
For Each hLink In wSheet.Hyperlinks
hLink.Address = Replace(hLink.Address, "http://www.baidu.com", "http://www.qq.com/")
Next hLink
Next wSheet
End Sub
4.Spring Controller 多方法调用
继承自 MultiActionController
<!--方法解析器-->
<bean id="paraMethodResolver" class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver"> <property name="paramName">
<value>method</value>
</property>
</bean>
<bean id="hotSpotsController" class="cn.com.lk.woc.vo.ctrl.HotSpotsController" lazy-init="true" singleton="false">
<property name="methodNameResolver">
<ref bean="paraMethodResolver"/>
</property>
<property name="hotSpotsBO" >
<ref bean="hotSpotsBO"></ref>
</property>
</bean>
5. CSS 报错: missing ; before statement
未知错误 空几行 换个地方写 ...
6. Extjs使用动态加载时提示"Ext.Loader is not enabled"的解决方法
Ext.Loader.setConfig({enabled:true});
7. JSP 参数中文乱码
encodeURIComponent 两次
decodeURI 一次
js:
param += encodeURIComponent(encodeURIComponent('热点结构管理'));
jsp:
var zone_code = decodeURI('${param.zone_code}'); //地区编号
8.StringBuffer 清空
sb.delete(0, sb.length());