Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascript Êý¾Ý¿âÈ¡Êý¾Ý ȫѡºÍ·´Ñ¡

    javascriptËù¶ÔÓ¦µÄȫѡºÍ·´Ñ¡ ¡£²Ù×÷Êý¾Ý¿â¼Ç¼¡£
ÒÔÏÂÊÇÒ³Ãæ´úÂ룺
<tr>
<td colspan="6" width="100%">
<table border="2" width="100%">
<tr class="center">
<th width="20%" class="center">
ȫѡ/·´Ñ¡<input type="checkbox" name="all"
onclick="ckeckAll(this);">
</th>
<th width="20%" class="center">
ÏäÖ÷
</th>
<th width="20%" class="center">
ÏäºÅ
</th>
<th width="20%" class="center">
ÏäÐÍ
</th>
<th width="20%" class="center">
ÏäÀà
</th>
</tr>
<tbody id="listTable">
<logic:iterate id="ylxhlist" name="lssqdListForm"
property="ylxhlist"
indexId="index">
<%
int i=index.intValue();
%>
<tr>
<th width="20%" class="center">
<html:checkbox property="checkbox1" name="ylxhlist"
value="true" indexed="true"/>
<html:hidden name="ylxhlist" property="id" indexed="true"
/>
<html:hidden name="ylxhlist" property="zbid"
indexed="true" />
<html:hidden name="ylxhlist" property="xxdm"
indexed="true" />
<html:hidden name="ylxhlist" property="xldm"
indexed="true" />
<html:hidden name="ylxhlist" property="ztmc"
indexed="true" />
<html:hidden na


Ïà¹ØÎĵµ£º

JavaScript²¶»ñ´°¿Ú¹Ø±Õʼþ

JavaScript²¶»ñ´°¿Ú¹Ø±Õʼþ
¹Ø¼ü×Ö: window.closeʼþ
javascript²¶»ñ´°¿Ú¹Ø±ÕʼþÓÐÁ½ÖÖ·½·¨
1.ÓÃjavascriptÖØÐ¶¨Òå window.onbeforeunload()  ʼþ
ÔÚjavascriptÀﶨÒåÒ»¸öº¯Êý¼´¿É
function  window.onbeforeunload()  {  alert("¹Ø±Õ´°¿Ú")}
alert()ʼþ½«»áÔڹرմ°¿ÚǰִÐУ¬ÄãÒ²¿ÉÒÔÓà ......

JavaScript Access´úÂë²Î¿¼

///ÏÂÃæÊǶÔAccessµÄÁ´½Ó
function getCountfromDB() {
    //ÒÔµ±Ç°Ò³ÃæÎļþΪ»ù´¡£¬ÕÒµ½ÎļþËùÔڵľø¶Ô·¾¶¡£
    var filePath = location.href.substring(0, location.href.indexOf("Cnt.htm"));
    var path = filePath + "MyData.mdb";
    //È¥µ ......

[JavaScript] ¡¶¾«Í¨JavaScript¡·Ñ§Ï°£¨ËÄ£©~ÃæÏò¶ÔÏó

     
     prototype¾«²Ê×ÊÁÏ£º
     "javascriptÖ®prototype" http://www.cnblogs.com/zouhaijian/archive/2009/03/29/1424592.html(ºÜ¼òÔ¼µ«ÇåÎúµÄ½²ÊöÁËprototypeµÄÓÃ;)
     "JavaScript¶ÔÏóÄ£ÐÍ-Ö´ÐÐÄ£ÐÍ" http://w ......

Ñо¿Ò»ÏÂJavaScriptµÄº¯Êý»Øµ÷»úÖÆ

Ñо¿Ò»ÏÂJavaScriptµÄº¯Êý»Øµ÷»úÖÆ
1¡¢±³¾°
JavascriptÖеĻص÷º¯Êý£¬ÏàÐÅ´ó¼Ò¶¼²»Ä°Éú£¬×îÃ÷ÏÔµÄÀý×ÓÊÇ×öAjaxÇëÇóʱ£¬ÌṩµÄ»Øµ÷º¯Êý£¬
ʵ¼ÊÉÏDOM½ÚµãµÄʼþ´¦Àí·½·¨£¨onclick,ondblclickµÈ£©Ò²Êǻص÷º¯Êý¡£
ÔÚʹÓÃDWRµÄʱºò£¬»Øµ÷º¯Êý¿ÉÒÔ×÷ΪµÚÒ»¸ö»òÕß×îºóÒ»¸ö²ÎÊý³öÏÖ£¬È磺
function callBack(result){
}
myD ......

JavaScriptɾ³ýÊý×éÖÐÖ¸¶¨ÖµµÄÔªËØ

/* ·½·¨:Array.remove(dx)
* ¹¦ÄÜ:ɾ³ýÊý×éÔªËØ.
* ²ÎÊý:dxɾ³ýÔªËØµÄϱê.
* ·µ»Ø:ÔÚÔ­Êý×éÉÏÐÞ¸ÄÊý×é
*/
//¾­³£ÓõÄÊÇͨ¹ý±éÀú,ÖØ¹¹Êý×é.
Array.prototype.remove=function(dx)
{
if(isNaN(dx)||dx>this.length){return false;}
for(var i=0,n=0;i<this.length;i++)
{
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ