Search

8/27/2008

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>

沒有留言: