1) EXTjs的应用。
2) 关于文件上传解决方法:
1、 提交form文件上传,新增一个空白iframe在form中可保证提交表单后不刷新页面<form enctype=”multipart/form-data”target=”hideIframe”></form><iframe name=”hideIframe” stype=”display:none;”></iframe>
2、 采用jQuery.form.js中ajaxFileUpload插件,ajaxFileUpload中上传有nameFileName,nameContentType两个属性
3) 日历使用WdatePicker οnclick=”wdatePicker()”;(使用插件WdatePicker.js)
4) EL表达式的使用:
1、在标签<s:iterator>中,[]中数据表示为变量:<s:iterator value=”bo.resultList”var=”result”><s:iterator value=”bo.columnList” var=”val”><td>${result[val.columnCode]}<td></s:iterator></s:iterator>
5) 对JSP语法总结:
1、 在each循环中,return跳出循环,return false=break,return true=continue。(一般函数为return结束函数)
2、 一般对表单控件textarea进行trim()一般采用replace(‘/\s/’,’’)。(为了一次达到目的,能清除所有空格)
3、 在JS中可以使用switch case对字符串进行过滤。
6) 对JSP中事件的总结:
1、 事件委托:live (如:jquery(‘id’).live(‘click’,function(){}))
7) 对页面操作总结:
1、 window.location.reload(true);(注意:加上true表示无缓存刷新,且在ie浏览器上不写true会出错)
2、 window.open(“url”);(新打开页面显示)
3、 window.location.href = “url”;(在当前页面打开URL,一般用于下载文件使用)
4、 location.href = “javascript:history.go(-1)”;(返回上一页)
5、 window.parent.document;(找到父窗口)
6、 window.frames[“name”].location.reload(true);(刷新某一个子页面)
7、 self与window等价:取此页Iframe中的name => self.name