After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:Two commonly used client-side output methods in JavaScript
描述:在網(wǎng)頁(yè)的<body>標(biāo)記,輸出str的內(nèi)容。 document意思“文檔”,就是整個(gè)網(wǎng)頁(yè)了。 document是一個(gè)文檔對(duì)象,代表整個(gè)網(wǎng)頁(yè)。 write()是document對(duì)象的一個(gè)輸出方法。 “.”小數(shù)點(diǎn):通過小數(shù)點(diǎn)(.)來調(diào)用對(duì)象的方法。 str:表示要輸出的內(nèi)容。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 inline SVG
SVG 圖像可通過文本編輯器來創(chuàng)建和修改 SVG 圖像可被搜索、索引、腳本化或壓縮 SVG 是可伸縮的 SVG 圖像可在任何的分辨率下被高質(zhì)量地打印 SVG 可在圖像質(zhì)量不下降的情況下被放大
2016-11-250個(gè)贊
Courses in the relevant section:Introduction to the concept of JavaScript variables
變量是變化的一個(gè)量。 變量可以看作是一個(gè)容納數(shù)據(jù)的容器 變量可以看成是一個(gè)“未知數(shù)”。 x = 10 變量可以看成是一個(gè)“符號(hào)”“代號(hào)”。 變量一般是指程序的數(shù)據(jù)。 變量是在內(nèi)存中存在和運(yùn)行的。 變量是臨時(shí)存在的數(shù)據(jù)。我們可以把計(jì)算機(jī)內(nèi)存看成是一個(gè)一個(gè)的“小格子”。每個(gè)“小格子”里可以存儲(chǔ)一個(gè)變量的名稱和變量的值。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 MathML (mathematical markup)
<math xmlns="http://www.w3.org/1998/Math/MathML"> <msup><mi>e</mi><mi>iπ</mi></msup> <mo>+</mo> <mn>1</mn> <mo>=</mo> <mn>0</mn> </math>
2016-11-250個(gè)贊
Courses in the relevant section:HTML5 Drag and Drop
有些事件在被拖放的元素上觸發(fā),有些在放置目標(biāo)上觸發(fā)。在拖動(dòng)元素時(shí),依次觸發(fā)dragstart事件、drag事件、dragend事件;當(dāng)某個(gè)元素被拖動(dòng)到一個(gè)有效的放置目標(biāo)上時(shí),依次觸發(fā)dragenter事件、dragover事件dragleave或者drop事件。
2016-11-250個(gè)贊
Courses in the relevant section:Data types of variables in JavaScript
基本數(shù)據(jù)類型:數(shù)值型、字符型、布爾型、未定義型、空型。很顯著的特點(diǎn):一個(gè)變量名只能存一個(gè)值。 復(fù)合數(shù)據(jù)類型:數(shù)組、對(duì)象、函數(shù)。顯著的特點(diǎn):一個(gè)變量名,可能存多個(gè)值。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 Geolocation
getCurrentPosition //當(dāng)前位置 watchPosition //監(jiān)視位置 clearWatch //清除監(jiān)視
2016-11-250個(gè)贊
Courses in the relevant section:HTML5 Video(video)
Controls屬性用于向?yàn)g覽器指明頁(yè)面制作者沒有使用腳本生成播放控制器,需要瀏覽器啟用本身的播放控制欄
2016-11-250個(gè)贊
Courses in the relevant section:Data type conversion of JavaScript variables
var x1 = true; var result = String(x1);
2016-11-240個(gè)贊
Courses in the relevant section:Several related functions of variables in JavaScript
使用typeof(),可以測(cè)試一個(gè)變量的類型
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 Audio(audio)
<audio src="song.mp3" controls="controls" loop="loop" autoplay="autoplay"> src 是歌曲的路徑 loop 歌曲循環(huán) 在標(biāo)簽里添加該屬性歌曲循環(huán) autoplay 當(dāng)歌曲加載后自動(dòng)播放
2016-11-250個(gè)贊
Courses in the relevant section:HTML5 new Input type
color 谷歌 歐鵬支持 date 谷歌 歐鵬 蘋果支持 email 火狐 谷歌 歐鵬支持 month 谷歌 蘋果 歐鵬支持 number 高版本IE 谷歌 歐鵬 蘋果支持 range 高版本IE 谷歌 歐鵬 蘋果支持 search 谷歌 蘋果支持 tel 均不支持 url 高版本IE 火狐 谷歌 歐鵬支持 week 谷歌 蘋果 歐鵬支持
2016-11-250個(gè)贊
Courses in the relevant section:Operators in JavaScript
算術(shù)運(yùn)算符:+、-、*、/、%、++、-- “%”取余運(yùn)算符,兩個(gè)數(shù)相除,取余數(shù)。 賦值運(yùn)算符:=、+=、-=、*=、/= 字符串運(yùn)算符:+、+= 比較運(yùn)算符:>、<、>=、<=、==、!=、===、!== 邏輯運(yùn)算符:&&、||、! 三元運(yùn)算符:?:
2016-11-240個(gè)贊
Courses in the relevant section:JavaScript special operators and operator precedence
new運(yùn)算符:創(chuàng)建一個(gè)對(duì)象。如:var today = new Date(); //創(chuàng)建一個(gè)當(dāng)前系統(tǒng)日期時(shí)間對(duì)象
2016-11-240個(gè)贊
Courses in the relevant section:if conditional judgment statement in JavaScript
if(條件){ 代碼塊; } if(條件){ 代碼塊; }else{ 代碼塊; }
2016-11-240個(gè)贊