kangax µÄjavascriptÃÕÌâ
µÚÒ»Ìâ
(function(){
return typeof arguments;
})();
//ÎÊ×Ô¶¯Ö´Ðк¯Êý»á·µ»Øʲôֵ
// ¾ÍÊÇ¿¼Arguments¶ÔÏóµÄtypeof
// ¿´Æ½Ê±ÓÃfirebug¶à²»¶àÁË¡¡
µÚ¶þÌâ
var f = function g(){ return 23; };
typeof g();
//ÎÊ×îºóÒ»ÐеÄÖ´Ðнá¹û
//¸ù¾Ý±ê×¼£¬ÃüÃûº¯Êý±í´ïʽµÄº¯ÊýÃûÖ»¶Ôº¯ÊýÌåÄڿɼû
//Òò´Ë±¨´í
µÚÈýÌâ
(function(x){
delete x;
return x;
})(1);
//ÎÊ×Ô¶¯Ö´Ðк¯Êý»á·µ»Øʲôֵ
// ²ÎÊý²»¿Éɾ³ý
//1
µÚËÄÌâ
var y = 1, x = y = typeof x;
x;
//ÎÊ×îºóÒ»ÐеÄÖ´Ðнá¹û
//ÉùÃ÷Á½¸ö±äÁ¿xÓëy£¬y×î³õ¸³Îª1,xûÓи³Öµ£¬Ä¬Èϸ³¸øwindowµÄÒ»¸öÊôÐÔundefined£¬
//Òò´Ëtypeof undefinedΪ"undefined",×îºóx= y= "undefined"
µÚÎåÌâ
(function f(f){
return typeof f();
})(function(){ return 1; });
//ÎÊ×Ô¶¯Ö´Ðк¯Êý»á·µ»Øʲôֵ
//º¯ÊýÃû±»ÓÅÏȼ¶¸ü¸ßµÄ²ÎÊýÃû¸²¸ÇÁË --->
// (function (f){
// return typeof f();
// })(function(){ return 1; });
//typeof 1 ---> "number"
µÚÁùÌâ
var foo = {
bar: function() { return this.baz; },
baz: 1
};
(function(){
return typeof arguments[0]();
})(foo.bar);
//ÎÊ×Ô¶¯Ö´Ðк¯Êý»á·µ»Øʲôֵ
//ÎÒÃÇ°ÑÏÂÃæÄǸö×Ô¶¯Ö´Ðк¯Êý·Ö½âÒ»ÏÂ
//var a = function(){
// return typeof arguments[0]();
//};
//a(foo.bar)
//Ö´ÐÐÍêarguments[0]()£¬¼´µÃµ½this.baz
//ÓÉÓÚthis±äÁ¿ÔÚ´Ë°ó¶¨Ê§Ð§£¬ËüÖ¸Ïòwindow£¬windowÓÐbax±äÁ¿Âð£¿
//ûÓУ¬·µ»Ø"undefined"
µÚÆßÌâ
var foo = {
bar: function(){ return this.baz; },
baz: 1
}
typeof (f = foo.bar)();
//ÎÊ×îºóÒ»ÐеÄÖ´Ðнá¹û
//ÎÒÃÇ°Ñ×îºóÒ»ÐзֽâÒ»ÏÂ
//window.f
//f= foo.bar
// f()
// typeof f()
//·µ»Ø"undefined"
µÚ°ËÌâ
var f = (function f(){ return "1"; }, function g(){ return 2; })();
typeof f;
//ÎÊ×îºóÒ»ÐеÄÖ´Ðнá¹û
//Ê×ÏÈÒªÀí½â·Ö×éÑ¡Ôñ·û£¬×îºóa»á¸³¸øʲôÄØ£¿
// var a = (1,2,3);
// alert(a) ---> 3
//ÄÇôÕâ¾Í¼òµ¥ÁË£¬f = function(){return 2};
//typeof f() ---> number
µÚ¾ÅÌâ
Ïà¹ØÎĵµ£º
/// <summary>
/// ÅжÏÊÇ·ñΪÕýСÊý
/// </summary>
/// <param name="str"></param>
/// <returns>ΪÕýСÊýʱ·µ»Øtrue,ÆäËû·µ»Øfalse</returns>
public static bool IsDecimal(string str)
{
//ÉùÃ÷Regex¶ÔÏó±äÁ¿
Regex objAlp ......
ÎÒÃÇÖªµÀ£¬javascriptÔÚÖ´ÐÐÆÚʱÊÇÓÉÄÚµ½ÍâÖ´Ðнű¾µÄ£¬ÄÇôÀëÎÒÃǵĽű¾×îÔ¶µÄÈ«¾Ö¶ÔÏ󣬺ܿÉÄÜÒª¿çÔ½¼¸²ã×÷ÓÃÓò¶ÔÄÜ·ÃÎʵ½Ëü¡£²»¹ýÔÚIEÖУ¬´Ó×îÄڲ㵽×îÍâ²ãÒª»¨µÄʱ¼ä±ÈÆäËû¶à³öºÜ¶à¡£¼ÓÖ®£¬javascriptÊÇÒ»ÖÖ½ºË®ÓïÑÔ£¬Ëü±ØÐëÒªµ÷ÓÃDOM¶ÔÄÜÍê³ÉÎÒÃÇ´ó¶àÊýÑ¡Ôñ¡£×îÖøÃûµÄ¾ÍÊÇÑ¡ÔñÔªËØ£¨document.getElementById,documen ......
/***************************by
garcon1986********************************/
Java is to
JavaScript what Car is to Carpet
ÂÛ̳½»Á÷£º´óÐ͵Äweb¿ª·¢ÉçÇø
http://www.webdeveloper.com/forum/index.php
W3CschoolsÖÐÎÄÕ¾£º¿ª·¢ÕßµÄʵÓÃ+ѧϰÍøÕ¾
http://www.w3school.com.cn/js/index.asp
javascript³ ......
1 >ÆÁ±Î¹¦ÄÜÀà
1.1 ÆÁ±Î¼üÅÌËùÓмü
<script. language="javascript">
<!--
function document.onkeydown(){
event.keyCode = 0;
event.returnvalue = false;
}
-->
</script>
1.2 ÆÁ±ÎÊó±êÓÒ¼ü
ÔÚbody±êÇ©Àï¼ÓÉÏoncontextmenu=self.event.returnvalue=false
»òÕß
<scri ......
//×Ô´øµÄ´òÓ¡Ô¤ÀÀ WebBrowser.ExecWB(1,1) ´ò¿ª
Web.ExecWB(2,1) ¹Ø±ÕÏÖÔÚËùÓеÄIE´°¿Ú£¬²¢´ò¿ªÒ»¸öд°¿Ú
Web.ExecWB(4,1) ±£´æÍøÒ³
Web.ExecWB(6,1) ´òÓ¡
Web.ExecWB(7,1) ´òÓ¡Ô¤ÀÀ
Web.ExecWB(8,1) ´òÓ¡Ò³ÃæÉèÖÃ
Web.ExecWB(10,1) ²é¿´Ò ......