06 2018 档案

摘要:1 2 3 4 5 6 7 8 9 10 11 Document 12 13 14 15 点击弹窗 16 17 33 34 35 阅读全文
posted @ 2018-06-30 16:41 Sunsin 阅读(5667) 评论(0) 推荐(0) 编辑
摘要:至于,我们为什么用require.js(大概也就是js阻塞作用的原因吧,一旦某些JavaScript代码出现异常,页面肯定加载的很好看) 更多参数,参考官网API:http://www.requirejs.cn/ 阅读全文
posted @ 2018-06-30 16:40 Sunsin 阅读(164) 评论(0) 推荐(0) 编辑
摘要:我们一般听说的是:javascript可以被嵌入到网页任何地方? 而我们一直忽略了css也可以嵌入到网页任何地方 不过,建议这种方式少写,为了浏览器的渲染速度,但对于行内样式来说,这种方式还是比较有效率。 阅读全文
posted @ 2018-06-30 16:30 Sunsin 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 5 6 7 8 Document 9 10 11 43 57 无标题文档 58 59 60 61 62 0 63 1 64 2 65 3 66 67 68 69 阅读全文
posted @ 2018-06-30 16:23 Sunsin 阅读(250) 评论(0) 推荐(0) 编辑
摘要:通过设置异步缓存,就可以做到 wx.setStorageSync('imgs',imglist); 最后的提交信息: 阅读全文
posted @ 2018-06-29 17:36 Sunsin 阅读(298) 评论(0) 推荐(0) 编辑
摘要:小程序并没有input带有日期组件(只有picker组件带日期),要不自创,要不就用picker把选中的值放入input当中 wxml js 因为会触发input,所以禁用它就可以了 阅读全文
posted @ 2018-06-29 17:27 Sunsin 阅读(3764) 评论(0) 推荐(0) 编辑
摘要:2018-12-24 详情示例见:https://www.cnblogs.com/cisum/p/9564898.html 2018-12-29 组件下载见:https://www.cnblogs.com/cisum/p/10199507.html 2019-3-14(推荐) 组件demo:http 阅读全文
posted @ 2018-06-29 16:47 Sunsin 阅读(22641) 评论(0) 推荐(3) 编辑
摘要:当小程序抹杀掉这个接口的时候,多少人心凉了。。 作为一个初级web前端开发,我是更加懵逼,小程序员跑路了。。。 当时以及现在用的办法就是: 1.增加一个登陆或授权页 2.上线以后自动获取 3.增加一个模态框 现在说说第三种吧 index.wxml <view class='show-author' 阅读全文
posted @ 2018-06-26 20:25 Sunsin 阅读(21131) 评论(0) 推荐(1) 编辑
摘要:你想在页面上使用JavaScript代码吗? 对不起,小程序不支持! 最近,一个项目就有这样的需求,我也就用上了wxs 使用方法很简单: 项目中用的是取小数点2位以及5位 具体请看官方API:WXS 阅读全文
posted @ 2018-06-26 19:04 Sunsin 阅读(184) 评论(0) 推荐(0) 编辑
摘要:微信小程序想要更快的速度吗? 满足你 https://github.com/tvfe/wxpage#-c%E5%AE%9A%E4%B9%89 使用超简单(导入wxpage.js,最后使用对象名:P): 具体,请查看github https://github.com/tvfe/wxpage 阅读全文
posted @ 2018-06-26 18:41 Sunsin 阅读(322) 评论(0) 推荐(0) 编辑
摘要:使用:先导入到util.js 最后在页面上导入util.js(路径自改) var util = require('../../util.js'); 使用示例GET:util.SEND(url,'GET',res=>,res=>); 使用示例POST:util.SEND(url,'POST',res= 阅读全文
posted @ 2018-06-26 15:42 Sunsin 阅读(6705) 评论(0) 推荐(1) 编辑
摘要:官方API也未曾标注,要添加文件指向 --files 所以解决方案就是: 阅读全文
posted @ 2018-06-21 13:08 Sunsin 阅读(418) 评论(0) 推荐(0) 编辑
摘要:转载于:https://blog.csdn.net/butterfly5211314/article/details/80163628 新版的已经支持了,用npm官方即可下载,也就是 注意,在项目环境目录下安装 使用的话,添加下面那句话即可 阅读全文
posted @ 2018-06-09 09:39 Sunsin 阅读(526) 评论(0) 推荐(0) 编辑
摘要:对于小程序官方编译器,我也不好说什么,不支持scss,不支持emment,一切来说都是不适应 美团mp:http://mpvue.com/mpvue/ vue官方:https://cn.vuejs.org/v2/guide/conditional.html 简单的来说就3步: 1. 安装vue-cl 阅读全文
posted @ 2018-06-08 21:00 Sunsin 阅读(280) 评论(0) 推荐(0) 编辑
摘要:引入样式: 导入全局 - >styles.css 导入第三方 - > 在package.json配置,然后再 npm install 安装好以后,最后再angular.json里面的styles添加node_module安装的第三方包 app里面的src目录都是模板: app.component.c 阅读全文
posted @ 2018-06-01 21:39 Sunsin 阅读(163) 评论(0) 推荐(0) 编辑
摘要:app.module.ts 1 var model = { 2 user: 'Admin', 3 items: [{ 4 action: 'buy flowsers', done: false 5 },{ 6 action: 'get shoes', done: false 7 },{ 8 acti 阅读全文
posted @ 2018-06-01 21:24 Sunsin 阅读(1042) 评论(0) 推荐(0) 编辑
摘要:导入全局样式,生产环境和浏览器环境都导入了. 不知否你还记得index.html那个里面的节点 熟悉吗? 很熟悉吧 阅读全文
posted @ 2018-06-01 20:48 Sunsin 阅读(184) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示