module pattern
ViewsHandler - a framework for DOM-based Applications
<script type="text/javascript">
myApp = function(){
return {
init:function(){
var canvas = document.getElementById('shell');
if(canvas){
// get data from initial shell...
}
}
}
}();
myApp.init();
</script>
沒有留言:
張貼留言