# try-thinkjs **Repository Path**: cdell/try-thinkjs ## Basic Information - **Project Name**: try-thinkjs - **Description**: 给凉凉的例子 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2015-09-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## README 给凉凉童鞋的例子 拉下来玩: ``` $ git clone https://git.oschina.net/shrekuu/try-thinkjs.git && npm install --registry=https://registry.npm.taobao.org ``` 启动(如在 www 目录执行 node index.js)后, 打开 http://localhost:8360/p 你看,在 `Lib/Controller/p/BaseController.js` 里调用 `Common/common.js` 里那个函数,取得百度首页 html 然后在 `Lib/Controller/p/IndexController.js` 里 `assign` 给变量 `html`, 在 `View/p/index_index.html` 里不用转义,直接输出,好啦,你有百度主页啦!!! 还不快点赞!!o(*≧▽≦)ツ