abstrait:<!DOCTYPE html> <html> <!-- E:/js_study/js1.html 訪問路徑 --> <head> <title>js基礎(chǔ)學(xué)習(xí)</title> <mate charest="utf-8"> <!
<!DOCTYPE html> <html> <!-- E:/js_study/js1.html 訪問路徑 --> <head> <title>js基礎(chǔ)學(xué)習(xí)</title> <mate charest="utf-8"> <!-- 設(shè)置編碼格式,以免亂碼; --> <script type="text/javascript"> document.write('歡迎來到英雄聯(lián)盟!'); // 同時聲明多個變量,用逗號隔開 // var name,age='like'; var like=3 alert(like); console.log(like) // 對象都是在花括號中的; // {name:'張三'}; // typeof:檢測數(shù)據(jù)時聲明類型; typeof(like) </script> </head> <body> </body> </html>
總結(jié):
Professeur correcteur:天蓬老師Temps de correction:2019-03-28 09:54:46
Résumé du professeur:js是比較難學(xué)的, 一定要有信心和決心, 堅持下去