Create StringBuilder : StringBuilder « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojox.string.Builder");
      dojo.require("dojox.string.sprintf");

      function testIt() {
        var b = new dojox.string.Builder("Java");
        b.clear();
        alert(b);
        b.append("Hello, world!");
        alert(b);
      }
    </script>
  </head>
  <body onLoad="testIt();">
  </body>
</html>








29.30.StringBuilder
29.30.1.Clear string builder
29.30.2.Insert at index
29.30.3.Replace string in string buffer
29.30.4.Create StringBuilder
29.30.5.Append to string builder