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Öд´½¨¶ÔÏóµÄ·½·¨ÈçÏ£º
Ò»¡¢´´½¨¼òµ¥¶ÔÏó£º
×î¼òµ¥µÄ´´½¨¶ÔÏóµÄ·½·¨¾ÍÊÇÓÃÒ»¸öеÄObject£¬È»ºóÏòÆäÖÐÌí¼ÓÄÚÈÝ£º
ÏÖÔÚµ÷ÓÃmyObject.say(),½«µ¯³ö’gao’µÄ¾¯¸æ¿ò¡£
var myObject = new Object();
myObject.name = ‘gao’;
myObject.say = function(){
alert ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy=& ......
ÈçºÎÆÁ±ÎjavascriptµÄ´íÎóÐÅÏ¢:
Ö»ÒªÔÚÒ³ÃæÖмÓÈëÈçÏ´úÂë¼´¿É£º
<SCRIPT LANGUAGE='JavaScript'>
<!--
//ÆÁ±Îjs´íÎó
function ResumeError() {
return true;
}
window.onerror = ResumeError;
// -->
</SCRIPT> ......
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web Éè¼ÆÊ¦µÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý× ......
¶ÔÏó³õʼ»¯·½Ê½(Ò²½Ðjson¶ÔÏó´´½¨·½Ê½)
<script type="text/javascript">
var User = {
name:"centerqi",
age:25,
toString:function()
  ......