代码拉取完成,页面将自动刷新
给凉凉童鞋的例子
拉下来玩:
$ 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(*≧▽≦)ツ
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。