書名: MooTools 1.2 Beginner's Guide作者名: Jacob Gube Garrick Cheung本章字數: 88字更新時間: 2021-04-01 13:33:36
Time for action—giving our class instance some custom options
Let's give some custom options to our class by deploying the following:
- Go back to the source code of the HTML document you just created. Go to the
var myDog = new Dog({ })
; line. - Pass property values to name, type, and age like so:
var myDog = new Dog({ name : 'Zensis', type : 'German Sheperd', age : 10 });
- Open your HTML document in the web browser, and now, you should see something like this:
推薦閱讀
- Moodle 2.0 E/Learning Course Development
- Hi!扁平化Photoshop扁平化用戶界面設計教程
- 鍵盤錄入技術(第2版)
- AI圖像處理:Photoshop+Firefly后期處理技術基礎與實戰
- UG NX 12.0實例寶典
- Elasticsearch實戰與原理解析
- Photoshop CS6實戰從入門到精通(超值版)
- 皮膚鏡圖像分析與識別
- Building Websites with Joomla! 1.5
- SOLIDWORKS中文版實用教程
- SolidWorks2016中文版從入門到精通/CAX工程應用叢書
- Photoshop+CorelDRAW平面設計案例實戰:從入門到精通(視頻自學全彩版)
- Origin科技繪圖與數據分析
- 中文版AutoCAD 2022從入門到精通
- 巧用ChatGPT高效搞定Excel數據分析