20130909QA整理笔记

做项目里遇到的一些问题!!

1、滚动条样式

webkit可以使用css来调节滚动条样式:

http://www.cnblogs.com/rubylouvre/archive/2011/03/01/1968057.html

其他浏览器使用js制作模拟滚动条

2、JSON.parse 错误处理

JSON.parse(str)  --> uncaught syntaxerror unexpected token U

str = undefined 时会出现这种情况

参考文献:http://stackoverflow.com/questions/13022178/uncaught-syntaxerror-unexpected-token-u-json

3、字符串拼接问题

html里面的input 和变量拼接问题

var name = name ;

var htmlStr = '<input type="text" value="'+name+'" class="vaidType">' ;

使用"'+name+'"   当name 为空的 可以正常转义

4、关于form表单光标的问题

 小莫莫给的参考资料:  http://smallmo.com/demo/qa/mouse.html

原文地址:https://www.cnblogs.com/w3cjiangtao/p/3309577.html