JavaScript µ÷Óúǫ́ʼþºÍ·½·¨
1¡¢ºǫ́·½·¨£º
protected string CsharpVoid(string strCC)
{
strCC = "http://" + strCC;
return strCC;
}
2¡¢Ç°Ì¨Ò³ÃæJavaScript·½·¨£º
<script language="javascript" type="text/javascript">
var v = "www.baidu.com";
var s = '<%=CsharpVoid("'+v+'")%>';
document.write(s);
</script>
¶þ£¬
1.ºó´úÂ룺
protected void CsharpVoid()
{
string strCC = "www.esoutong.com";
Response.Write(strCC);
}
2.µ÷Ó÷½·¨£ºCsharpVoid()
<mce:script language="javascript"><!--
document.write("<%CsharpVoid();%>");
// --></mce:script>
Èý£¬
°ÑÐèÒªµ÷Óõĺ¯ÊýдÔÚ·þÎñÆ÷¿Ø¼þÀȻºóÔÚjavascriptÖмÓÈë<img src="/Images/OutliningIndicators/None.gif" mce_src="Images/OutliningIndicators/None.gif" align=top>document.getElementById("Äã¿Ø¼þID").click();
Ïà¹ØÎĵµ£º
ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇ ......
ÎÒÔÚjsÖж¨ÒåÁËÒ»¸öº¯Êý£º
function closeCodeList()
{
try
{
showFistIndex = 0;
arrayBmCode = null;
if(document.all("spanCode").style.display=='')
{
var disFlag=1;
}
document.all("spanCode").style.display='none';
try{if(disFlag)oldFieldKey.focus();}catch(ex){}
}
c ......
DOMÊÇÕë¶ÔXMLµÄ»ùÓÚÊ÷µÄAPI£¬ËüÓëÓïÑÔÎ޹أ¬ÊµÏÖ·½Ê½ÓкܶàÖÖ£¨¸÷ÓïÑÔ»ù±¾¶¼ÓÐ×Ô¼ºµÄʵÏÖ£©¡£
²»¹ýÎÒÃǾ³£Óõģ¬ÊÇJavaScript ϵÄdomÕë¶ÔxhtmlµÄ²Ù×÷£¬Ö»ÊÇdomµÄÒ»¸ö·ÖÖ§Ó¦Óá£
Ãû´Ê½âÊÍ£º
Dom£ºÎĵµ¶ÔÏóÄ£ÐÍ¡£Document object model
Bom£ºä¯ÀÀÆ÷¶ÔÏóÄ£ÐÍ£¬Ò²¿ÉÒԽд°¿Ú¶ÔÏóÄ£ÐÍ¡££¨window object model.£©
API£ºÓ ......
ÔÚajaxû³öÀ´Ö®Ç°£¬Ò»Ö±ÊÇÓÃiframeʵÏÖµÄÎÞË¢ÐÂÇëÇó¡£
Ö÷ÒªµÄÔÀíÊÇ£º
ʹÓÃjs´´½¨Ò»¸öÒþ²ØµÄiframe
°ÑÒªÌá½»µÄ±íµ¥µÄtargetÊôÐÔÖ¸Ïò1ÖÐÉú³ÉµÄiframe
ÔÚÇëÇóµÄÒ³ÃæÖлص÷¸¸Ò³ÃæµÄ·½·¨
ÕâÑù¾ÍʵÏÖÁËÒ»¸ö¼òµ¥µÄ“Òì²½Ìá½»”
¿´ÆðÀ´ºÍajaxÒ»ÑùµÄЧ¹û£¬ÄÇΪʲô»¹ÒªÓÐajax£¬ÎÒÃÇÀ´±È½ÏÏ£º£¨ÒÔÏ°Ñajax¼¼Êõ³ÆΪX ......
ͨ³£ÓÃtypeofÀ´ÅжÏjs±äÁ¿µÄÀàÐÍ£¬µ«ºÜ¶àʱºò½ö½ötypeofÂú×ã²»ÁËÒªÇóµÄ¡£
ÎÒдÁËÒ»¸ö×Ô¶¨Ò庯ÊýÀ´×öÕâ¸öÊ£¬ÅжϵıȽÏÈ«ÃæÁË¡£
New
function
varType(v){
if
(
typeof
v===
"object"
){
if
(v===
null
)
return
'null'
;
if
(v.
constructo ......