jQuery StoneUI 为网页开发提供了一系列的常用UI组件,包括窗口、对话框、布局等等,提供漂亮的UI界面,基于面向对象方式实现,方便扩展
示例代码:
<!-- include core.js --> <script type="text/javascript" src="../src/js/core.js"></script> <script> var Smile = stone.Class.extend({ init: function() { Log.out('init smile'); this.name = 'super'; }, smile : function(name) { Log.out('super\'s smile > ' + name); } }); var Hello = Smile.extend({ init: function(){ Log.out('init hello'); Smile.fn.init.call(this); }, say: function(){ Log.out('hello\'s say'); } }); var h = new Hello(); h.say(); h.smile('h'); </script>