seajs使用总结

 <script language="javascript" src="http://localhost/CodeIgniter/js/seajs/seajs/1.2.1/sea.js"></script>
    <script language="javascript">
        seajs.config({
            base:'/CodeIgniter/js',
            alias:{
                'jquery':'seajs/jquery/1.7.2/jquery.js'
            }
        })

        seajs.use(['t1/put_url'])

    </script>

 seajs使用commjs模块系统,所欲模块化方法与nodejs类似。

posted @ 2013-02-28 16:44  break_happy  Views(204)  Comments(0)    收藏  举报