2. Hand code a javascript that loads an image from Internet based on
the DOM model.
3. Take a look at the sample code that shows how window.onload to load the image.
4. Use a button to load the image. Try how onclick works.
一開始照著程式碼打
會發現圖案直接顯示
加入Button的程式碼後
一開啟網頁後,顯示出Button
按下Button後,會顯示圖案
沒有留言:
張貼留言