I look at the http://www.cnblogs.com/mylem/archive/2009/11/11/1600984.html After this blog

, Start designing your own code , In fact, a lot of explanations are in my code , So I won't introduce it in detail .

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>dojo.connect</title>
<script type="text/javascript" src="\arcgis_js_api\library\3.21\3.21\dojo\dojo.js"></script>
</head>
<body>
<script type="text/javascript">
// Function encapsulation
function SayHello(){
alert(" Hello ,dojo Already called ");
}
// Loading and binding of events
dojo.addOnLoad(function(){
var btn=dojo.byId('hello');
dojo.connect(btn,"onclick",SayHello);
});
</script>
<input type="button" id="hello" value="hello">
</body>
</html>

Code running effect :

dojo.js --dojo Quick Start/dojo Introduction Manual 1 More articles about

  1. 【Dojo 1.x】 note 1 introduction

    Dojo It's a framework , It's a js frame , Now I don't know anything but that , That's it . ps: Don't suggest Web Beginners look at my notes , It takes a certain amount of accumulation to see this . stay <body> A little bit of code in the tag : <b ...

  2. js,jquery and dojo operation dom

    I want to learn recently arcgis javascript api, The obstacle is dojo, For the sake of understanding dojo, I'm learning dojo At the same time refer to the original js and jquery, I studied in the afternoon dom operation ,mark Next ! One . Get elements js ...

  3. Node.js Introduction Manual : The most popular ones Web Development framework

    This article shares with you the most popular Node.js Web Development framework .Node Is a server side JavaScript Interpreter , It will change the concept of how servers should work . Its goal is to help programmers build highly scalable applications , Ed ...

  4. 【Webpack】320- Webpack4 Introduction Manual ( common 18 Chapter )( Next )

    Introduce 1. background I've been working with the head of the Department recently , Together on the research team [EFT - Front end novice village ] Construction , The aim is : Help new people quickly understand and integrate into the company team , Help zero basic newcomers learn and get into front-end development and reach the company's business development level . This article also belongs to [E ...

  5. 【Webpack】319- Webpack4 Introduction Manual ( common 18 Chapter )( On )

    Introduce 1. background I've been working with the head of the Department recently , Together on the research team [EFT - Front end novice village ] Construction , The aim is : Help new people quickly understand and integrate into the company team , Help zero basic newcomers learn and get into front-end development and reach the company's business development level . This article also belongs to [E ...

  6. 《Qt Quick 4 Getting started in hours 》 Learning notes 4

    http://edu.csdn.net/course/detail/1042/14806?auto_start=1 Qt Quick 4 Getting started in hours Chapter vii. : Handle mouse and keyboard events 1. Handle mouse events Mouse signal ...

  7. 《Qt Quick 4 Getting started in hours 》 Learning notes 3

    http://edu.csdn.net/course/detail/1042/14807?auto_start=1 Qt Quick 4 Getting started in hours Chapter viii. :Qt Quick The anchor in (anchors) Layout ...

  8. 《Qt Quick 4 Getting started in hours 》 Learning notes 2

    http://edu.csdn.net/course/detail/1042/14805?auto_start=1   Qt Quick 4 Getting started in hours The fifth chapter :Qt Quick Introduction to basic interface elements   1. ...

  9. 【three.js One of the details 】 Introduction

    [three.js One of the details ] Introduction   Opening remarks webGL We can canvas Implemented on 3D effect . and three.js Is a webGL frame , It is widely used because of its ease of use . If you want to learn webGL, Get rid of the complicated ...

Random recommendation

  1. 2005 TCO Online Round 1 - RectangleError

    RectangleError Problem's Link Problem Statement You want to draw a rectangle on a piece of paper. Un ...

  2. HDU 5101 Select -- discretization + Tree array

    The question :n Group , Each group has some values , seek Choose one of the two different groups so that the sum of the values is greater than k The number of ways . solution :n * Cnt[n] <= 1000*100 = 100000, At most 10^5 personal , So enumerate each value x, seek ...

  3. GNU make summary ( One )

    make The execution of depends on a makefile file , The document tells make How to compile and link .make Determine which files need to be updated by comparing the last modification time of corresponding files .make Tools are mainly used for project compilation and program linking operations ...

  4. iOS Development of the judgment system version

    if([[UIDevice currentDevice].systemVersion doubleValue]>=7.0) { // yes IOS7 To the above version }else{ //IOS7 The following versions }

  5. JSP Cookie Use

    Cookie It is usually used for website to record some information of customers , Such as the customer's user name and customer preferences, etc . Once the user logs in next time , Website can get the relevant information of customers , Based on these customer information , Website can provide more friendly service to customers . Cookie sess ...

  6. ural 1989 subplindromes

    https://vjudge.net/problem/URAL-1989 The question : Let's start with a string , For this string , There are two operations , One is to ask from subscript x To y Is it palindrome , The other is subscribing to pos Change the character of to ...

  7. Postman Interface automation test case 2

    stay <Postman Interface automation test examples > In the article , I'm getting the interface of random factors Tests The user's password is encrypted in . In fact, the normal practice should be before the request to verify the interface , That is to say Pre-request Script ...

  8. Example :pm_multiple_models matching —— Shape match

    * This example program shows how to use HALCON's shape-based matching* to find multiple different mo ...

  9. winform Determine whether an event has been bound with an event handler

    public static class ComponentHelper<T> where T : Control { public static bool HaveEventHandler ...

  10. Django - Supplementary table of contents

    Django Project deployment importlib application - django contenttypes - django Components Django - Model operation Django - User authentication . User group . User permissions Djan ...