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

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Buy Books Online at Best Prices

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.