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类似。

你可能感兴趣的:(seajs)