document Îĵ²¶ÔÏóÏê½â(JavaScript½Å±¾ÓïÑÔÃèÊö)
[×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд£¬·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØÎª¿Õ»òÕß²»ÊǶÔÏó"]
========================================================================
¶ÔÏóÊôÐÔ:
document.title //ÉèÖÃÎĵµ±êÌâµÈ¼ÛÓÚHTMLµÄ<title>±êÇ©
document.bgColor //ÉèÖÃÒ³Ãæ±³¾°É«
document.fgColor //ÉèÖÃǰ¾°É«(Îı¾ÑÕÉ«)
document.linkColor //δµã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.alinkColor //¼¤»îÁ´½Ó(½¹µãÔÚ´ËÁ´½ÓÉÏ)µÄÑÕÉ«
document.vlinkColor //Òѵã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.URL //ÉèÖÃURLÊôÐÔ´Ó¶øÔÚͬһ´°¿Ú´ò¿ªÁíÒ»ÍøÒ³
document.fileCreatedDate //Îļþ½¨Á¢ÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileModifiedDate //ÎļþÐÞ¸ÄÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileSize //Îļþ´óС£¬Ö»¶ÁÊôÐÔ
document.cookie //ÉèÖúͶÁ³öcookie
document.charset //ÉèÖÃ×Ö·û¼¯ ¼òÌåÖÐÎÄ:gb2312
----------------------------
³£ÓöÔÏó·½·¨:
document.write() //¶¯Ì¬ÏòÒ³ÃæÐ´ÈëÄÚÈÝ
document.createElement(Tag) //´´½¨Ò»¸öhtml±êÇ©¶ÔÏó
document.getElementById(ID) //»ñµÃÖ¸¶¨IDÖµµÄ¶ÔÏó
document.getElementsByName(Name) //»ñµÃÖ¸¶¨NameÖµµÄ¶ÔÏó
document.body.appendChild(oTag)
========================================================================
body-Ö÷Ìå×Ó¶ÔÏó
document.body &nbs
Ïà¹ØÎĵµ£º
function unique(data){debugger;
data = data || [];
var a = {};
for (var i=0; i<data.length; i++) {
var v = data[i];
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>JavaScriptʵÏÖ¸ôÐбäÉ«µÄ±í¸ñ</title>
<style>
<!--
.datalist{
border:1px solid #007108; /* ±í¸ñ±ß¿ò * ......
HtmlÒ³
<a href="javascript:void(0);" mce_href="javascript:void(0);" ><img id="SubmitFeedback" src="/images/comment_btn.gif" mce_src="images/comment_btn.gif" /></a>
½Å±¾
$(document).ready(function() {
alert("Ò³ÃæË¢ÐÂ&q ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScriptÄ£¿éË ......
ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇ ......