Bulit-In Bluff

* alert

alert('這是alert');

螢幕快照 2013-10-11 上午10.01.24

* confirm

confirm('這是 confirm');

螢幕快照 2013-10-11 上午10.03.54

會依照你按的按鈕回傳一個 Boolen true or false

* prompt

prompt('這是 prompt');

螢幕快照 2013-10-11 上午10.08.52

可以 send message 同時回傳 string
也可以存回變數

var userName = prompt("What's yours name");

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s