1.控制页面滚动条滚动到顶部:scrollTo(0, 0);
2.控制页面禁止输入空格:value=value.replace(/\s/g,'');
3.mysql如果是UTF-8字符集,正常排序方法汉字不能按照A~Z顺序排列,需要通过order by convert(name using gbk) asc;才可以 ;
4.jmap命令:jmap -dump:format=b,file=test.bin 4939
5.html之间传值取值:
var type = location.search.substring(1);//这个就是页面?后面的内容,自己处理一下
type = type.replace('type=','');
6.js控制浏览器url
var stateObject = {};
var title = "北京现代";
var newUrl = "/commonApp/login/LoginAction.action?verCode="+<%=verCode%>;
history.pushState(stateObject,title,newUrl);
7.js去除数字前不需要的0:
var v = "00.23";
v = v*1;
8.oralce的SQL语句中若查询了LOB字段是不能使用distinct,union,和group by等关键字,只能优化查询语句,绕过关键字。