dojo toolkit components

DOJO Toolkit hello world example

The Hello world example as below,
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>dojo toolkit hello world example</title>
  <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js" data-dojo-config="async: true"></script>
</head>

<body>
  <h1 id="selectorId">Hello</h1>
  <script>
    require(['dojo/dom', 'dojo/dom-construct'],
      function(dom, dom_Construct) {
        var node = dom.byId('selectorId');
        dom_Construct.place('<span> Anil Singh!</span>', node);
      });
  </script>
</body>

</html>

The output look like,

ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

www.code-sample.com/. Powered by Blogger.
^