Javascript»ñµÃ×ÓÒ³Ãæ±äÁ¿µÄÖµ
Àý£º
page.htmlÒ³Ã棺
<html>
<head>
<title>This is a test</title>
</head>
<script type="text/javascript">
var count;
</script>
<body>
<iframe id="child" src="childPage.html" src="childPage"></iframe>
</body>
</html>
Ò³ÃæÀïǶÌ×ÁËÒ»¸öchildPage.htmlÒ³Ãæ¡£
ÔÚpageÖеÄcountÈçºÎ»ñµÃchildPageÒ³ÃæµÄchildCountÖµÄØ£¿
child.childCountÕâÖÖ·½·¨Ã²ËƲ»ÐÐ……
»¹ÊÇ»»Ò»ÖÖ˼·°É£¬ÈÃchildPageÖеÄchildCountµÈÓÚpageÒ³ÃæµÄcount¡£ÈçÏ£º
<html>
<head>
<title>This is a test(child)</title>
</head>
<script type="text/javascript">
var childCount = parent.count;
<script>
<body>
<iframe id="child" src="childPage" src="childPage"></iframe>
</body>
</html>
ÕâÑùÔÚpageÒ³ÃæÖ±½Ó¾Í¿ÉÒÔ»ñµÃchildPageÒ³ÃæµÄchildCountµÄÖµ¡£
Ïà¹ØÎĵµ£º
¾¡¹ÜÄÇÐèÒªÓó¤´®µÄ¡¢³ÁÃƵIJ»Í¬·ÖÖ§´úÂëÀ´Ó¦¸¶²»Í¬ä¯ÀÀÆ÷µÄÈÕ×ÓÒѾ¹ýÈ¥£¬Å¼¶û»¹ÊÇÓбØÒª×öһЩ¼òµ¥µÄÇø·ÖºÍÄ¿±ê¼ì²âÀ´È·±£Ä³¿é´úÂëÄÜÔÚÓû§µÄ»úÆ÷ÉÏÕý³£ÔËÐС£ÔÚÕâƪÎÄÕÂÖУ¬×÷Õß½éÉÜÁË7¸öÔÚIEºÍfirefoxÖв»Í¬µÄJavaScript¾ä·¨¡£
1. CSS "float" Öµ
¡¡¡¡·ÃÎÊÒ»¸ö¸ø¶¨CSS ÖµµÄ×î»ù±¾¾ä·¨ ......
´ò¿ªÒ»¸ö js Îļþ£¬±à¼Íê³É±£´æʱ£¬Í»È»ÌáÐÑÏÂÃæµÄ´íÎó£º
Save could not be completed.
Reason:
Some characters cannot be mapped using “ISO-8859-1″ character encoding. Either change the encoding or remove the characters which are not supported by the “ISO-8859-1″ character ......
function setEnd(field) {
if (field.createTextRange) {
var r = field.createTextRange();
r.moveS ......
ʹÓà Cookies¡¡¡¡ÎÒÃÇÒѾ֪µÀ£¬ÔÚ document ¶ÔÏóÖÐÓÐÒ»¸ö cookie ÊôÐÔ¡£µ«ÊÇ Cookie ÓÖÊÇʲô£¿“ijЩ Web
Õ¾µãÔÚÄúµÄÓ²ÅÌÉÏÓúÜСµÄÎı¾Îļþ´æ´¢ÁËһЩÐÅÏ¢£¬ÕâЩÎļþ¾Í³ÆΪ Cookie¡£”—— MSIE °ïÖú¡£Ò»°ãÀ´Ëµ£¬Cookies ÊÇ CGI
»òÀàËÆ£¬±È HTML ¸ß¼¶µÄÎļþ¡¢³ÌÐòµÈ´´½¨µÄ£¬µ«ÊÇ JavaScript Ò²Ìá¹ ......