Currently, Dojo has been upgraded to version 1.0.1. As the version of the upgrade, the location of the various packages of dojo, functions have changed greatly. This is very bad for our developers. Still, the power of dojo is a shock to me again and again. Here are some common methods used by dojo, as well as the changes that come with version upgrades, I'll take a note here. Since I have just been in touch with dojo soon, I will continue to add more content in the future.
1. About the debug system with the dojo itself. (Note: Set the Djconfig Isdebug property to True first)
Old version: Dojo.debug ("---------");
New version: Console.debug ("---------");
2. About event bindings in Dojo
Old version: You can use Dojo.event.connect to bind events to page elements, as follows:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="../dojojs/dojo.js"></script>
</body>
<INPUT id="handler" TYPE="button" value="test"/>
</body>
<script type="text/javascript">...
var handlerNode = document.getElementById("handler");
function handleOnClick(evt) ...{
alert(evt + "You Clicked the Button");
}
dojo.event.connect(handlerNode, "onclick", "handleOnClick");
</script>
New version: No corresponding methods have been found.