会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晓晓的天下
欢迎大家多多指点!
博客园
首页
新随笔
联系
订阅
管理
2018年8月28日
代码行数统计方式
摘要: # 代码行数统计方式 ## 按照文件类型 ``` 在想要统计的目录的根目录执行 find ./ -name "*.vue" | xargs wc -l ``` ## 按照目录 ``` 在想要统计的根目录执行脚本countLines.sh chmod 777 countLines.sh ./count
阅读全文
posted @ 2018-08-28 15:53 xiaoxiao333
阅读(1274)
评论(0)
推荐(0)
2018年8月22日
小程序wx.request请求封装
摘要: // 展示进度条的网络请求 // url:网络请求的url // params:请求参数 // message:进度条的提示信息 // success:成功的回调函数 // fail:失败的回调 function requestLoading(url, params, message, succes
阅读全文
posted @ 2018-08-22 10:56 xiaoxiao333
阅读(2430)
评论(0)
推荐(0)
快应用开发踩坑文档
摘要: 项目构建: ``` bash ## 参考网址 - [快应用官网](https://www.quickapp.cn/) - [快应用开发文档](https://doc.quickapp.cn/) - [快应用开发圈资源汇总](https://github.com/quickappdev/awesome
阅读全文
posted @ 2018-08-22 10:54 xiaoxiao333
阅读(290)
评论(0)
推荐(0)
2018年8月13日
解决ios下拍照自动旋转问题
摘要: <input class="sr-only" id="inputImage" name="file" type="file" accept="image/*" onchange="getFile()"> 上传照片 <canvas id="canvas" style="height: 0px"></c
阅读全文
posted @ 2018-08-13 17:02 xiaoxiao333
阅读(994)
评论(0)
推荐(0)
2018年8月1日
移动端touch事件影响click事件
摘要: click点击事件在ios上会有300毫秒的延迟目前有以下解决方法: 方法一:静止缩放 [html] view plain copy <meta name="viewport" content="width=device-width user-scalable= 'no'"> 方法二:fastcli
阅读全文
posted @ 2018-08-01 11:07 xiaoxiao333
阅读(298)
评论(0)
推荐(0)
sublime自动编译less
摘要: sublime先安装less2 自动编译less https://fdream.net/blog/article/783.aspx https://fdream.net/blog/article/783.aspx npm install -g less npm install less-plugin
阅读全文
posted @ 2018-08-01 11:07 xiaoxiao333
阅读(436)
评论(0)
推荐(0)
小程序生成带参数的二维码
摘要: 工具:postman 首先调用接口获取tooken 接口地址:https://api.weixin.qq.com/cgi-bin/token?appid=&secret=&grant_type=client_credential 再调用另外一个接口获取生成的二维码 接口地址:https://api.
阅读全文
posted @ 2018-08-01 11:06 xiaoxiao333
阅读(214)
评论(0)
推荐(0)
小程序键盘遮挡输入框情况之一
摘要: 输入框在页面最底,当你将页面滑到最底时,点击输入框没问题;但是页面没有滑到最底时,就会出现键盘弹出遮住输入框 解决方案: <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tUeXBlIjoiaW1hZ2UiLCJzdHlsZXMiOnsiaGVp
阅读全文
posted @ 2018-08-01 11:02 xiaoxiao333
阅读(2309)
评论(0)
推荐(0)
小程序web-view的H5页面的跳转
摘要: 1.web-view的H5页面引入下面js <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> 调用api: wx.miniProgram.navigateTo({
阅读全文
posted @ 2018-08-01 11:02 xiaoxiao333
阅读(1125)
评论(0)
推荐(0)
小程序组件开发组件
摘要: 一、插件里的方法需要放到method里,如methods: { phoneChange: function (e) {}}二、wx.navigateTo不可以使用,可以通过组件给当前页面传参数方式实现,如自定义组件可以使用 triggerEvent 接口向页面发送事件,页面 WXML 中使用 bin
阅读全文
posted @ 2018-08-01 10:58 xiaoxiao333
阅读(105)
评论(0)
推荐(0)
下一页
公告