今天开始学习 Kissy~

 1 <!DOCTYPE HTML>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <title></title>
6 <script type="text/javascript" src="kissy.js"></script>
7 <script type="text/javascript">
8 KISSY.ready(function(S){
9 var DOM = S.DOM,Event = S.Event,
10 btn = DOM.get("#btn");
11 Event.on(btn,'click',function(){
12 alert('Hello Kissy');
13 });
14 });
15 </script>
16 </head>
17 <body>
18 <button id="btn">Hello Kissy</button>
19 </body>
20 </html>
posted @ 2011-10-23 13:26  sirzxj  阅读(267)  评论(0编辑  收藏  举报