Don't do useless things
来源:互联网 发布:手机淘宝旧版本6.6.0 编辑:程序博客网 时间:2024/06/02 00:20
1、float或者position后就不要写 display:block,没啥用。
2、BFC不用清除浮动。
3、PNG24支持透明,png8支持α透明。
4、label标签加for
5、parseInt() 函数可解析一个字符串,并返回一个整数。
parseInt(string, radix) string 必需。要被解析的字符串。radix6、不要用for in遍历数组,改prototype会出问题。可选。表示要解析的数字的基数。该值介于 2 ~ 36 之间。
如果省略该参数或其值为 0,则数字将以 10 为基础来解析。如果它以 “0x” 或 “0X” 开头,将以 16 为基数。
如果该参数小于 2 或者大于 36,则 parseInt() 将返回 NaN。
7、无条件跳转逻辑用replace,不用location.href
8、toString()点前面加空格 1 .toString()
9、获取到的内容和数字相加 要涉及parseInt和number 因为会避免字符串相加。
10、input设disabled,值将不会被传递到server端,所以需要时候设readonly只读。
11、该用table时要用table。
0 0
- Don't do useless things
- Don't Ask Coworkers These 10 Things
- Don't Be Afraid to Break Things
- Don’t Be Afraid to Break Things
- Jin,don't ever do that
- If I Don't Do anything Else
- Don‘t talk.Just do it.
- 4 Things Bill Gates Knows That You Don't
- why copy constructor don't need to check 3 things
- Continuous Integration Builds – Do’s And Don’t’s
- 浪费时间的三件事----同感,do it,don't worry!
- Don't Do this :Sharing Variables without Synchronization.
- do right things do things right
- Top 10 Things Customers Don't Want to Hear And What You Should Say Instead
- Things To Do
- things to do
- Things to do
- 10 things you didn't know you can do with Unreal Engine 4
- 如果是小写字符就输出对应的大写字符,如果接收的是大写字符,就输出对应的小写字符,如果是数字不输出。
- C语言心得_2
- 设计模式(一)--深入单例模式(涉及线程安全问题)
- 欢迎使用CSDN-markdown编辑器
- RabbitMQ(六)使用Dead Letter(死信队列)进行延时发送
- Don't do useless things
- Linux下如何修改txt文件的字符编码
- 列表解析
- 如何在移动硬盘上安装Ubuntu系统(1)
- [刷题#2][FJOI2015]建筑师
- 深入理解Java ClassLoader原理
- SVN uuid不匹配解决方案,修改本地uuid
- tomcat -----------虚拟目录映射
- 2017.3.26 最长双回文串 思考记录