摘要:
Debian/Ubuntu:sudo apt-get install php5-devyum:sudo apt-get install php5-devel 阅读全文
摘要:
1.7 Tips to Make Life Easier in Node.jsnodejs开发,调试中用的一些工具及初学node时易犯的错误; 阅读全文
摘要:
1.For XUL elements, you do not need to use the draggable attribute, as all XUL elements are draggable. 阅读全文
摘要:
1.将鼠标设置成显示为图片.bar { cursor: pointer; cursor: url(cursor2.png) 2 2, pointer; }注意点:图片大小有限制, 火狐新版本最大支持128×128px;图片类型的话,PNG, GIF, JPG, BMP, CUR, etc都支持; 阅读全文
摘要:
The search+ will make your searching and site-opening easier!After install search+, when your page has no focused input element you can type your wanted site url or search words.You need not go to address bar any more!1: If your input can represent a url, you can go to the website directly;2: If... 阅读全文
摘要:
1.IE6下,用jQuery.ajax()请求jsonp数据的时候,如果返回数据包含中文将出现解析错误,应将返回数据进行unicode编码; 阅读全文
摘要:
前端重构实践(一) —— 性能优化 在此随笔重会逐步,不断的添加前段开发中用的各种知识的好文章,从代码要点到性能提升,到代码管理(git的使用),到代码部署代码管理(git):1.一个成功的Git分支模型在 本文中,我向大家介绍的是在大约一年前我为自己的项目(包括工作和私人项目)引入的且已被证实非常成功的一个开发模型(development model)。这段时间我一直想写点关于它的东西,但在此之前,我却从未能抽出充足的时间来完成这件事。我不会谈论项目的任何细节,只涉及分支策略 (branching strategy)和发布管理(release management)。...... 性能优化: 阅读全文
摘要:
目录/文件 说明 ./ 根目录,我们的node.js代码都会放在这个目录 package.json npm依赖配置文件, 类似ruby中的Gemfile, java Maven中的pom.xml文件. 一会需要在这里添加 markdown-js 项目依赖 app.js ... 阅读全文
摘要:
页面某元素样式{overflow:auto},当元素内内容超过该元素大小的时候会自动出现滚动条,此时垂直滚动条的位置可以通过元素的scrollTop进行控制,相应的有scrollLeft控制水平滚动条。 ...document.getElementById("exp").scrollTop = 0;//将滚动条滚动到顶部document.getElementById("exp").scrollLeft = 0;//将滚动条滚动到最左端 阅读全文
摘要:
All CSS properties involving lengths should be handled with caution. We recommended that you use proportional units (em, %) instead of absolute units (px) whenever possible. Using the former allows the UI to scale proportionately depending on font size settings, which are often changed by use... 阅读全文