ʾ Ƶ ʺŰ ѹ ڣ | ر
ע ѳ ӡ20 Ƭ >
null : ʾ ; undefined : ʾһ δ ı û и ı һ ڵĶ ԡ == ȡ Ҫ ߣ Ҫʹ === typeof ʹ if (!object){} Ͷ 䣺2006.12.6 vanity 6 var obj = "aaa"; var nullobj; if (obj == null || obj == undefined || (!obj) ){ alert("obj is null"); } if (nullobj == null){ alert("obj vanity 6 is null"); } if (nullobj vanity 6 == undefined){ alert("obj is undefined "); } if ( !nullobj ){ alert("! obj "); } undefined "undefined vanity 6 IJ 䣨2007/1/30 JScript ڱ ʾδ undefined ʶ DZ ʾʲôδ 壿 "undefined"( " ) ʲô ϵ أ Ϊʲô е ʱ ʹ undefined ͱ Ƚϣ е ʱ أ underfined "undefined" һ һ Ϊundefined vanity 6 JScript ṩ һ " ؼ " "undefined"ȴ ľ һ ڵ ݳ ú undefinedһ undefined "undefined" Ȼ ʮ Եģ ǵ ϵҲ ǽ ġ ϸ Ķ JScript ᣬ ʵ underfined һ " Ѷ " Global δ 塣 ǿ ʾ Ȥ <script language="Javascript"> alert(undefined); alert(variable); </script> еĽ ǣ һ Ĵ 룬 һ typeof <script language="Javascript"> alert(typeof vanity 6 undefined); alert(typeof vanity 6 variable); </script> Ӧ ʲô أ ʾ"object" "undefined" Ȼ ˣ alert ö ʾ"undefined" undefined ǽű 涨 һ ڽű ʼ Ϻ ڡ ʵ ʾһ Ѷ ı Ϊ ʼ (uninitialized) var i; ʱ i undefined i ʵʵ define ģ δ ʼ ʱ Ǿ д ı ʽ i жϣ if ( i == undefined ) δ ڴ г ı ʹ ã ʱ δ ĸ Dz undefined δ ʼ ˣ ñ ȫδ Ǽǵ ű С ʹ if ( abc == undefined ) 䣬 õ ͼ еĵڶ ʾ ʵ ʹ У ʹ typeof жϱ Ƿ δ 壬 ǿ ȫ δ (undefined) δ ʼ (uninitialized) ģ Ǻ ʱ Ҳ ϲ ʹ if ( typeof xxx == 'undefined' ) д Ϊliteral ƴд ϰ ǿ ԵĽǶ Ҳ Եò רҵ undefined:δ һ ʹ һ ڵĶ null IJ Ϊ ǰ IE4.0 undefined ɣ null undefined Ϊ <script language="javascript"> var msg="ʹ δ ı undef_x: "; if(typeof(undef_x)=="undefined")msg+="undefined "; else msg+="defined "; msg+="n"; msg+=" δ undef_null_x: "; var undef_null_x; if(typeof(undef_null_x)=="undefined")msg+="undefined ";else msg+="defined "; if(undef_null_x==null)msg+="null ";else msg+="not null"; msg+="n"; msg+=" null null_x: "; var null_x=null; if(typeof(null_x)=="undefined")msg+="undefined ";else msg+="defined "; if(null_x==null)msg+="null ";else msg+="not null"; msg+="n"; msg+=" "" x: "; var x=""; if(typeof(x)=="undefined")msg+="undefined ";else msg+="defined "; if(x==null)msg+="null ";else msg+="not null"; alert(msg); </script>
this.p={ m:2, b:2, loftPermalink:'', id:'fks_087066086084087068083094084070072087084070086084080066093094', blogTitle:'null undefined ', blogAbstract:' 人PHP ʵѵ ', blogTag:'', vanity 6 blogUrl:'blog/static/1552261982012472941176', isPublished:1, istop:false, type:0, modifyTime:0, publishTime:1336370981176, permalink:'blog/static/1552261982012472941176', commentCount:0, mainCommentCount:0, recommendCount:0, bsrk:-100, publisherId:0, recomBlogHome:false, currentRecomBlog:false, vanity 6 attachmentsFileIds:[], vote:{}, groupInfo:{}, friendstatus:'none', followstatus:'unFollow', pubSucc:'', visitorProvince:'', visitorCity:'', visitorNewUser:false, postAddInfo:{}, mset:'000', mcon:'', srk:-100, remindgoodnightblog:false, isBlackVisitor:false, isShowYodaoAd:false, hostIntro:'', hmcon:'1', selfRecomBlogCount:'0', lofter_single:' ' } {list a as x} {if !!x}
{if x.moveFrom=='wap'} {elseif x.moveFrom=='iphone'} {elseif x.moveFrom=='android'} {elseif x.moveFrom=='mobile'} {/if} ${fn(x.visitorNickname,8)|escape} {/if} {/list} {if !!a} ${fn(a.nickname,8)|escape}
${x.referUserName|escape} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.blogTile|default:""|escape} vanity 6 {/if} {/list} {list a as x} {if x_index>4}{break}{/if} {if !!x} ${fn1(x.title,60)|escape} ${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')} {/if} {/list} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} {if !!(blogDetail.preBlogPermalink)}
{list a as x} {if !!x} ${x.nickName|escape} ͶƱ {var first_option = true;} {list x.voteDetailList as voteToOption} vanity 6 {if voteToOption==1} {if first_option==false},{/if} ${b[voteToOption_index]} {/if} {/list} vanity 6 {if (x.role!="-1") }, ${c[x.role]} {/if} &n
No comments:
Post a Comment