思考
怎样才能去深圳?要先有房···
今天继续研究cmswing。昨天的hooks算是研究了比较彻底。今天继续研究接下来的片段:

当初一看this.get('order') 就找来找去到底是哪里来的,然后发现原来是thinkjs的ctx.get,获取order参数。
然后通过数据库查询返回订单结果,这种this.model返回格式也是在thinkjs可以查到


然后发现有个自动裁剪get_pic 在src/bootstrap/global.js
挺强大的。

这里还学到一个model.cache

这里有个疑问,为什么用ajax请求的就用渲染到pc模版,不用ajax就渲染到手机端模版?
看错了,原来ajax判断用来返回json的数据,其他直接渲染。剩下的大部分是手机端适配,果然精妙。
网友评论