JS中parseInt()、random()及Math.cell()函数的学习
一、parseInt()函数 表 达式:parseInt(string,radio);string为将要转换的字符串,radio为转换的基数。可选。表示要解析的数字的基数。该值介 于 2 ~ 36 之间。如果省略该参数或其值为 0,则数字将以 10 为基础来解析。如果它以 “0x” 或 “0X” 开头,将以 16 为基数。如果该参数小于 2 或者大于 36,则 parseInt() 将返回 NaN。 作用:将第一个字符串参数,转换为整数; 返回值:整数; 实例: parseInt("010",10)就是10进制的结果:10 parseInt("010",......
vim命令-查找字符串
vim命令-查找字符串 2012-08-21 15:28:58| 分类: VIM |字号 订阅 1. vim 中用 / 和 ? 来查找字符串,两者的区别是: /string 会高亮显示光标后匹配的第一个字符串,回车后光标移到该字符串的第一个字母; ?string 会高亮显示光标前匹配的第一个字符串,回车后光标移到该字符串的第一个字母。 在回车之后,按n键同方向转到下一个匹配的字符串,按N键反方向转到上一个匹配的字符串。 二、字符串的替换 1.......
survey popup
var Survey = { load:function(config){ }, isUserActive:function(){ }, calculateOccurence:function(){ }, ......
Magento form field dependence
file : app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php // define field dependencies $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence') ->addFieldMap("is_wysiwyg_enabled", 'wysiwyg_enabled')//param1 is form element id, param2 is element maped ->addFieldMap("is_html_allowed_on_front", 'html_allowed_on_front') ->addFieldMap("frontend_input", 'frontend_input_type') ->addFieldDependence('wysiw......
jQuery idleTimer plugin
jQuery idleTimer plugin June 3rd, 2009 There are a few cases where you want to know if the user is idle. Namely: You want to preload more assets You want to grab their attention to pull them back You want close their banking session after 5 minutes of inactivity.(Jerk!) You want the site to sneak off the screen and see if they notice ;-) Nick Zakas wrote a script for YUI3 to handle these cases. His writeup has a great description of the architecture approach he took to the script. In my jQuery adaptation, I did a few different things: Leveraged......
S.O.L.I.D.类设计原则
本文是由敏捷宣言签署人之一、《 Clean Code(代码整洁之道)》一书的作者Robert C. Martin为他的《Applying Principles and Patterns》这本书搜集整理而来。 单一责任原则(SRP) 只有一个理由去修改一个类。例如,如果一个业务规则的改变会导致这个类的修改,那么,数据库、界面、报表格式或系统任何其它的部分的改变都不该迫使这个类做修改。 http://davidhayden.com/blog/dave/archive/2005/05/29/1066.aspx http://c2.com/cgi/wiki?SingleResponsibilityPrinciple 《Head First 设计模式》 ......
- Page:16/147 1465 Blogs
| 周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(765)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)