现在的位置: 首页 > Web设计
4℃
2014年05月21日 Web设计 ⁄ 被围观 7,587+
博客的很多图片资料存放在 SAE 上面,鉴于七牛的静态资源存储不错,计划迁移到七牛云存储上面,进而方便统一管理。 【下载 SAE Storage 中的资料】 所需工具:Cyberduck 配置 服务器: auth.sinas3.com 端口:443 用户名:应用AccessKey 密码:应用SecretKey 【上传到七牛】 所需工具:qiniu-devtools-windows_386 [qrsync.exe] 配置, 新建 conf.json 文件 access_key: 应用AccessKey secret_key:应用SecretKey bucket:bucket 名称 sync_dir:本地同步文件夹 执行 qrsync.exe conf.json 即可 【外链切...
阅读全文
0℃
2013年09月07日 Web设计 ⁄ 被围观 3,205+
JS代码有一个特殊的规则,那就是hoisted提升规则,函数的调用可以放在函数实现的前面,但是仅限于函数是以非表达式的场合声明实现的,那么变量的提升又有什么不同呢,在开发过程中还会出现哪些经常犯的错误,本文对此进行了介绍。 One of the trickier aspects of JavaScript for new JavaScript developers is the fact that variables and functions are "hoisted." Rather than being available after their declaration, they might actually be available beforehand. How does that work? Let's take a look...
阅读全文
0℃
2013年08月31日 Web设计 ⁄ 被围观 3,249+
本文详细解读了Javascript语言中的作用域Scope和上下文Context。JS是一种特殊的解释型语言,尤其是闭包的概念,使得JS更灵活,还有事件的绑定bind,this指针的用法等,相信本文有所帮助。 JavaScript’s implementation of scope and context is a unique feature of the language, in part because it is so flexible. Functions can be adopted for various contexts and scope can be encapsulated and preserved. These concepts are behind some of the most powerful design patterns JavaScript has to offe...
阅读全文
0℃
2013年08月30日 Web设计 ⁄ 被围观 3,251+
在优化网站的过程中,其中一个规则就是尽量减少HTTP的请求数量,比如图片的合并,JS,CSS代码的合并等,本文介绍了一款PHP的自动合并脚本,可以在网站中使用,只要将原来需要引用JS和CSS的地方,换成该脚本的函数调用,那么脚本就会自动将过个请求合并成一个请求,重而提高网站的打开速度。 Combining Assets One of the basic tenets of making a web-page load quickly is reducing the number of HTTP requests that your page makes. One very common way of doing this, is assuring that all of your CSS fi...
阅读全文
0℃
2013年08月15日 Web设计 ⁄ 被围观 3,012+
在编程的过程中,尤其是文本的处理,我们很多时候都需要正则表达式,比如,验证用户输入的Email是否格式正确,电话号码是否符合规范,或者其他的自定义规则。对新手来说,熟记正则表达式的规则比较困难,那么有没有一种更符合自然语义的正则表达式呢,本文会给你答案。 Most newbie (and some seasoned) programmers have difficultly constructing Regular Expressions. Many a times one needs to create a Regexp quickly to test a a particular piece of code. However, not being comfortable withe Regexp...
阅读全文
0℃
2013年08月15日 Web设计 ⁄ 被围观 3,135+
php中使用session的场合主要是用户登录信息的记录和页面之间数据的传递,session的有效期为浏览器的生存期,直到用户关闭浏览器,服务器中的session数据才清除。本文介绍了怎么样利用session来存储变量。 In this article I’m going to show you some simple things to work with sessions in php, these are mostly used to store information about your users, like usernames, choices selected by users and similar, these however are stored on the server and deleted once the user closes the browser....
阅读全文
0℃
2013年08月15日 Web设计 ⁄ 被围观 2,968+
在页面设计的过程中,总会使用CSS来进行样式设计,样式的选择器也无非常用4种,ID,Class,Tag和Universal,优先级从高到底,那么怎么样设计选择器和样式,可以提高CSS的解析效率,平时的设计中又会出现哪些误区,那么如下的文章值得一看。 Writing good CSS code can speed up page rendering. Essentially, the fewer rules the engine has to evaluate the better. MDN groups CSS selectors in four primary categories, and these actually follow the order of how efficient they are: ID Rules Class Rul...
阅读全文
0℃
2013年08月03日 Web设计 ⁄ 被围观 2,852+
开发WEB的同学都应该听说过SQL注入,如果开发过程中,直接利用parameter中传入的值来进行数据库查询的话就有SQL注入的风险,那么到底有哪些高级的SQL注入手法,相信读过本文,了解的就不是一点点了,看看黑客们是怎样注入的,那么,自己在以后的开发过程中也要适时留意,防范这种风险。 Put on your black hats folks, it’s time to learn some genuinely interesting things about SQL injection. Now remember – y’all play nice with the bits and pieces you’re about to read, ok? SQL injection is a parti...
阅读全文
×
腾讯微博