Problem: The following is the error code: tried to register widget with ID = content but that ID is already registered
1 <! -- Dojo configuration --> 2 <SCRIPT type = "text/JavaScript"> 3 var dojoconfig = {4 parseonload: True, // when the Dom and all initial dependencies are loaded, parse the page using dojo/parser. It is recommended to set it to false (or omitted), and then explicitly reference the dojo/parser to call parser. parse (). 5 packages: [6 {name: "test", Location: "/JS/myjs/test"} 7], // set the module path 8}; 9 10 parser. parse (); 11 </SCRIPT>
View code
Cause: parseonload: True is the same as parser. parse (). It parses the interface twice.
Id = content is registered twice, and an error is reported during the second registration.
Solution: Change parseonload: True to false or delete parser. parse ();
Tried to register widget with ID = content but that ID is already registered