ÁíÒ»ÖÖJavascript·ÃÎʺǫ́·½·¨
ÔÀ´ÊÖ¶¯Ð´AJAXµÄʱºò,Ò»°ã¶¼ÏÈ´´½¨XMLHttpRequest¶ÔÏñµÄ,»òÕßÖ±½ÓÓÃJqueryµÄ·½·¨,Õâ´Î¿´µ½ÕâÖÖ¶¯Ì¬×¢²á½Å±¾Ð´·¨,»¹ÊÇÂùÆæÌصÄ.дÏÂÀ´,¼Ç¼һÏÂ,ºÇºÇ!
ÕâÊÇǰ̨Js´úÂë:
<mce:script type="text/javascript"><!--
var scriptLastID = null;
// »Øµ÷·½·¨
function backFunction(type,content){
switch(type){
case 'userInfo':
alert('name: ' + content.name + ' age: ' + content.age);
// ÕâÀï¿ÉÒÔÒƳýµô×¢²áµÄscript½Å±¾
break;
case 'other':
alert('other');
break;
default:
alert('nothing');
}
}
function buttonClick(){
var script = document.createElement('script');
script.id = 'scriptID' + Date.parse(new Date());
script.type = 'text/javascript';
script.src = 'backGround.aspx';
// Ïòhead×¢²áÒ»¸öscript½Å±¾
document.getElementsByTagName('head').item(0).appendChild(script);
}
// --></mce:script>
ÕâÊǺǫ́aspx·µ»ØÊý¾ÝµÄ´úÂë
protected void Page_Load(object sender, EventArgs e)
{
// ·µ»ØÒ»¸öJsµÄ»Øµ÷·½·¨
Response.Write("backFunction('userInfo',{name:'cookie wang',age:'100'});");
Response.End();
}
ÔõôÉÏ´«¸½¼þ?°¦....ËãÁË!
Ïà¹ØÎĵµ£º
±¾²©¿ÍתÔØÓÚ£ºhttp://devbean.javaeye.com/blog/409566
±Õ°üÕâ¸ö¸ÅÄî¿´ÉÏÈ¥ºÜÉî°Â£¬Õâ¸ö´ÊÔÚÀëÉ¢ÊýѧÀïÃæµÄÒâ˼ȷʵ±È½ÏÄÑÓÚÀí½â¡£ÔÚÕâÀÎÒÃÇÏÈ¿ÉÒ԰ѱհüÀí½â³ÉÊÇÒ»ÖÖÄäÃûº¯Êý»òÕßÄäÃûÀà¡£
1. ʲôÊDZհü£¿
ʲôÊDZհü£¿Ò»ÖÖÕýʽµÄ½âÊÍÊÇ£ºËùν±Õ°ü£¬Ö¸µÄÊÇÒ»ÖÖÓµÓкܶà±äÁ¿²¢ÇÒ°ó¶¨ÁËÕâЩ±äÁ¿µÄ»·¾³µÄ±í´ïÊ ......
function function xx(){...} ¶¨Ò庯Êý
isNumeric ÅжÏÊÇ·ñÊÇÊý×Ö
innerHTML xx=¶ÔÏó.innerHTML ÊäÈëij¶ÔÏó±êÇ©ÖеÄhtmlÔ´´úÂë
innerText divid.innerText=xx ½«ÒÔdiv¶¨Î»ÒÔidÃüÃûµÄ¶ÔÏóÖµÉèΪXX
locati ......
String¶ÔÏóµÄ charAt(x)¶ÔÏó ·´»ØÖ¸¶¨¶ÔÏóµÄµÚ¶àÉÙλµÄ×Öĸ
lastIndexOf("string") ´ÓÓÒµ½×óѯÕÒÖ¸¶¨×Ö·û£¬Ã»Óзµ»Ø-1
......
ÔÚÉè¼ÆjavascriptµÄ¼Ì³ÐÌåϵʱ£¬ÓÐÒ»¸öÖØÒªÐèÇ󣬷½·¨Á´¡£Í¨Ë×µØ˵£¬ËµÊÇÔÚ·½·¨Öе÷Óø¸ÀàµÄͬÃû·½·¨¡£ÀàËÆjavaµÄthis.super().method()¡£ÈçºÎ°Ñ¸¸ÀàµÄͬÃû·½·¨°ü×°µ½×ÓÀàÖÐÄØ£¿Õâ¾ÍÒªÓõ½wrapperº¯Êý¡£Ö®ËùÒÔ½Ðwrapper£¬¶ø²»ÊÇwrap£¬ÒòΪËü±Èwrap¸ü¼Ówrapper¡£±ÈÈçÏñExtÄÇÖÖÉî¶È¼Ì³ÐµÄ½á¹¹ÖУ¬Èç¹û¸¸ÀàûÓÐÕÒ×游£¬×æ¸¸Ã»Ó ......
À´×Ô£ºhttp://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
Wed, Nov 11, 2009
Development
, Javascript
, Tools
JavaScript – an indispensable part for developing websites and web
pages, whether th ......