今天开始学习 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>

你可能感兴趣的:(kissy)