誒西,JavaScript學習記錄。。。。。。

來源:互聯網
上載者:User

標籤:col   地址   c語言學習   nbsp   bsp   比較   複習   array   賦值   

  由於大學課程緣故,老師巨愛叫人問問題,還記分呢,隨便記錄一下Js的學習情況,以後複習什麼的也比較方便吧。。。。。。

 

開始咯,就按照C語言學習那樣的方法來吧!

==================================割割割==================================

1.資料類型(這裡只是大概提一下)

 1 /* 2     我認為Js裡沒有明顯的資料類型,僅有 字串、數字、布爾、數組、對象、Null、Undefined 3 */ 4  5 var temp = ‘legth‘ 6  7 var temp = 1 8 var temp = -3.14159 9 var temp = 1e910 11 var temp = false12 13 var person {14     name : ‘lwc‘15     sex : ‘male‘16     age : 2017 }18 19 var name = null20 21 //undefined22 var name23 log(name)

 

2.變數聲明

var ans
var mark = false
var i = 0,j = 0,k = 0
var tlog(t)//這種情況t是undefined
var name = ‘Volvo‘var name//這種情況name依然是Volvo
var name = ‘Volvo‘var name = ‘ben‘//這種情況name就會被重新賦值

3.數組

//方法1var ans = []//方法2var ans = new Array()

原地址:http://www.w3school.com.cn/jsref/jsref_obj_array.asp

誒西,JavaScript學習記錄。。。。。。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.