Creating the page content
You need to create the HTML <div> tag that will serve as the container for the map. You always want to assign a unique id to the <div> tag so that your JavaScript code can reference that element in the page. If you're following along in the Sandbox, you'll see that this has already been done for you:
<body>
<div id="map"></div>
</body>
In addition, if you specified a Dojo style sheet you will also want to define the class attribute for the <body> tag to reference it. This is not strictly necessary in this example because we are not going to be using any styleable dijit, but it can't hurt, so change the <body> tag to read as follows:
<body class="claro"> <div id="map"></div> </body>
推薦閱讀
- Functional Python Programming
- PHP動態網站程序設計
- FuelPHP Application Development Blueprints
- C語言程序設計(第3版)
- .NET 4.0面向對象編程漫談:基礎篇
- 算法大爆炸:面試通關步步為營
- SQL for Data Analytics
- 跟小海龜學Python
- RTC程序設計:實時音視頻權威指南
- Scratch 3.0少兒編程與邏輯思維訓練
- Blender 3D Incredible Machines
- C語言程序設計案例式教程
- JavaScript by Example
- Java Web程序設計任務教程
- Learning Modular Java Programming