有图有真相
先看一个例子
<div class="fadein">
<div>
<div>I am going to fade in ;</div>
<div>I am going to fade in ;</div>
</div>
</div>
$('.fadein').fadeIn();
很多时候我们都想阻止一个a link的href跳转,
<a onclick=”return false;” href=”www.360.cn”>click</a>
顺丰快递还是靠谱, 过年前两天 一大早就把货送来了,
先说 lumia 800的物理做工, 这是我最喜欢的一款了 简单大方, 方方的,长长的,正合我意
javascript的核心就在于事件处理。我们经常会对一个对象进行事件绑定,加上事件处理函数。如果一个元素和它的一个上级节点对于同一个事件都有进行事件处理,哪一个先触发呢?毫无疑问,这决定于浏览器。
昨天刚发布了ubuntu 11.10,用工具做了U盘后,用U盘启动时总是在黑屏上只有光标闪动,无其他任何提示,用UltraISO、unetbootin-windows-563.exe、Universal-USB-Installer-1.8.6.8.exe做出来的U盘启动盘都有同样问题,用ubuntu 11.04从U盘安装也存在同样问题。
1.运行 regedit 打开注册表编辑器。 2.依次展开HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager目录,找到其中的 PendingFileRenameOperations 项目,直接右键,选择“删除”即可。 据了解,PendingFileRenameOperations 键值存放的是当前系统会话的快照,通过它记录了一个未成功进行文件重命名的操作,在安装 Adobe CS5 系列软件时发现了这个键值的存在,它就会自作多情的认为上一个安装程序没有完成,因此会提示让重新启动。 注意 PendingFileRenameOperations 在右边哦
We see that at this phase there is no any “b” since it is not a variable, “b” will appear only at code execution phase (but in our case won’t since there is an error).
if(!Math.prototype.randomFromTo){
Math.prototype.randomFromTo = function(from, to){
return Math.floor(Math.random() * (to - from + 1) + from);
};
}
javascript 中有一个值NaN 它是一个怪胎
NaN 的意思是 Not a Number
但是 typeof NaN // number 也就是说 NaN是数字类型的 ecma的文档里确实这么写的
jvascript object 内部属性, 每一个对象都有这些内部属性
| Internal Property | Value Type Domain | Description |
| [[Prototype]] | Object or Null | The prototype of this object. |
| [[Class]] | String | A String value indicating a specification defined classification of objects. |
| [[Extensible]] | Boolean | If true, own properties may be added to the object. |
| [[Get]] | SpecOp(propertyName) → any |
Returns the value of the named property. |
| [[GetOwnProperty]] | SpecOp (propertyName) → Undefined orProperty Descriptor | Returns the Property Descriptor of the named own property of this object, orundefined if absent. |
| [[GetProperty]] | SpecOp (propertyName) → Undefined or Property Descriptor | Returns the fully populated Property Descriptor of the named property of this object, or undefined if absent. |
| [[Put]] | SpecOp (propertyName, any, Boolean) | Sets the specified named property to the value of the second parameter. The flag controls failure handling. |
| [[CanPut]] | SpecOp (propertyName) → Boolean | Returns a Boolean value indicating whether a [[Put]] operation withpropertyName can be performed. |
| [[HasProperty]] | SpecOp (propertyName → Boolean) | Returns a Boolean value indicating whether the object already has a property with the given name. |
| [[Delete]] | SpecOp (propertyName, Boolean) → Boolean | Removes the specified named own property from the object. The flag controls failure handling. |
| [[DefaultValue]] | SpecOp (Hint) → primitive | Hint is a String. Returns a default value for the object. |
| [[DefineOwnProperty]] | SpecOp (propertyName, PropertyDescriptor, Boolean) → Boolean | Creates or alters the named own property to have the state described by a Property Descriptor. The flag controls failure handling. |
http://hixie.ch/advocacy/xhtml
http://hsivonen.iki.fi/doctype/
以上大作一定要读
$(function() {
$.fn.scrollToTop = function() {
$(this).hide().removeAttr(“href”);
if ($(window).scrollTop() != “0″) {
$(this).fadeIn(“slow”)
}
var scrollDiv = $(this);
$(window).scroll(function() {
if ($(window).scrollTop() == “0″) {
$(scrollDiv).fadeOut(“slow”)
} else {
$(scrollDiv).fadeIn(“slow”)
}
});
$(this).click(function() {
$(“html, body”).animate({
scrollTop: 0
}, “slow”)
})
}
});
$(function() {
$(“#w2b-StoTop”).scrollToTop();
});
$('html, body').animate({ scrollTop: 0 }, 0);
server {
listen 80;
server_name mydomain.com;
location / {
access_log off;
proxy_pass http://mydomain.com:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
需要您的系统为 Amazon Linux AMI。
登陆您的EC2 instance,如果您用使用Tunnier并且按照前文登陆时默认关闭”Open Terminal”的话,需要在Login后,点击左侧Open New Terminal Console进入EC2 instance终端。
搞了一台万网的云主机, 开通倒挺快, rhel 5.1的 内核是 2.6.18-243.el5
比较搞笑的是,网页管理平台只能用 root 登陆, 而且登陆后,没有可操作的,只有信息的显示,