Javascriptѧϰ±Ê¼Ç
Ò». »ù´¡Æª
1. Javascriptѧϰ±Ê¼Ç1——Êý¾ÝÀàÐÍ
2. Javascriptѧϰ±Ê¼Ç2——º¯Êý
3. Javascriptѧϰ±Ê¼Ç3——×÷ÓÃÓò
4. Javascriptѧϰ±Ê¼Ç4——Evalº¯Êý
5. Javascriptѧϰ±Ê¼Ç5——ÀàºÍ¶ÔÏó
6. Javascriptѧϰ±Ê¼Ç6——prototypeµÄÌá³ö
7. Javascriptѧϰ±Ê¼Ç7——ÔÐÍÁ´µÄÔÀí
¶þ. ʵսƪ
8. Javascriptѧϰ±Ê¼Ç8——ÓÃJSON×öÔÐÍ
9. Javascriptѧϰ±Ê¼Ç9——prototype·â×°¼Ì³Ð
Èý. DOMÏà¹Ø
10. Javascriptѧϰ±Ê¼Ç10——ÍøÒ³µÄÔËÐлúÖÆ
11. Javascriptѧϰ±Ê¼Ç11——°ü×°DOM¶ÔÏó
13. Javascriptѧϰ±Ê¼Ç13——¹ØÓÚÏìӦʼþ
ËÄ. AJAXÏà¹Ø
12. Javascriptѧϰ±Ê¼Ç12——AjaxÈëÃÅ
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
javascript ÊÇÒ»ÖÖÇø·Ö´óСдµÄ³ÌÐòÓïÑÔ.
¶¨ÒåÊý×é:
var strweek= new Array(7);
Îʺűí´ïʽ
var i= (condition)?A:B;
Ï൱ÓÚif-else Óï¾ä;condition ³ÉÁ¢ Ö´ÐÐA £¬²»³ÉÁ¢Ö´ÐÐB;
switch Óï¾ä
var i=3;
var result="";
swithck(i);
{
case 1;
result="First";
case 2;
result="Second";
ca ......
תÔØ:JavaScript»ñÈ¡Ò³Ãæ¿í¶È¸ß¶È´óÈ«
µØÖ·:http://www.cnblogs.com/wcg249165510/archive/2009/02/20/1394749.html
ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.offsetWidth(°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.offsetHeight(° ......
<!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; /* ±í¸ñ±ß¿ò * ......
dygraphs Ö÷ÒªÓÃÀ´ÏÔʾÃܼ¯Êý¾Ý¡£ËùνһͼʤǧÑÔ£¬dygraphs Éú³ÉµÄͼ±í¿ÉÒÔËæ×ÅÊó±êλÖÃÏÔʾÊý¾Ý£¬ÍÏק·Å´ó£¬Ë«»÷ËõС¡£
dygraphs ÒÀÀµHTMLµÄ<canvas>±êÇ©£¬¶øÕâ¸ö±êǩ΢ÈíµÄIE Ç¡Ç¡²»Ö§³Ö¡£¹Ù·½ÍøÒ³ÉÏ˵û¹Øϵ£¬ÄãÖ»Òª°üº¬Ò»¸ö½Ðexcanvas µÄJavaScript. ¿â¾ÍÐÐÁË£¬µ«¾ÝÎÒ²âÊ ......