摘要:
(1)AppBar:automaticallyImplyLeading//是否带返回leading箭头 (2)非route路由页面跳转 :Navigator.of(context).push(MaterialPageRoute(builder: (context) => UnderPage())), 阅读全文
摘要:
Mark一下:string sql = "SELECT * FROM SomeTable WHERE id IN @ids" var results = conn.Query(sql, new { ids = new[] { 1, 2, 3, 4, 5 }}); 阅读全文
摘要:
(1)搜索 https://pub.dartlang.org/packages/jpush_flutter ,安装插件,并且按照官方配置 /android/app/build.gradle (2)Flutter 新建页面,我放在Welcome页面 class SplashPageState exte 阅读全文
摘要:
npm install weixin-js-sdk --save 这个不行,这个是vue前端用的 网上找了一些vue jsweixin的案例 不能直接用 因为nuxt是后端运行,windows对象取不到,通过查找到了一个可用的案例 就是把js注入到前端 其中jssdkInfo和要分享的appid,n 阅读全文
摘要:
1.安装pm2 npm install pm2 -gd 2.启动 Pm2 start ./bin/www 3. pm2 save 4.Pm2 startup 5.Pm2 save修改 package.json "scripts": { "build": "nuxt build && npm star 阅读全文
摘要:
已经购买centos服务器,并安装了nodejs环境 Secure CRT链接 Cd / Cd /var/www Mkdir test.abc.cn 用ftp 除了node_modules,其他都上传 然后 cnpm install 为了防止冲突,修改nuxt的端口,修改 /package.json 阅读全文
摘要:
用store把api数据交互部分重构出来,让前端更轻一点 新建 /store/gettter.js /store/actions.js /server/config/index.js Index.js: export default { app:{ domain:'', host:'localhos 阅读全文
摘要:
1.新建/pages/login.vue 2.安装cookie 3.Login.vue增加 4.Npm run dev刷新,cookie写入成功 5.为了统一鉴权,需要用到middleware,新建/middleware/userauth.js,如果需要了解middleware更多可以先从vue,e 阅读全文
摘要:
这时候我们完成了list.vue,但是怎么返回index.vue,这时候需要这个头部返回 1.我们使用现成的minu-ui,eleme的开源移动端 ,参考 https://www.cnblogs.com/hai-cheng/p/8760887.html 2.修改nuxt.config.js plug 阅读全文
摘要:
面是单页,下面实现一个列表页和分页加载的例子 1.新建pages/list.vue <template> <div> 分页加载列表页面 </div> </template> <script> export default { } </script> 2.我们从footer的首页改成更多,然后从foo 阅读全文