上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: 在小程序开发中,默认底部导航栏很难满足实际需求,好在官方给出了自定义形式,效果如下: 话不多说,直接上代码 1.组件 custom-tarbar.vue文件 <template> <view class="tarbar"> <view class=".tarbar-list" :style="{ b 阅读全文
posted @ 2019-07-19 14:08 我若亦如风 阅读(13501) 评论(2) 推荐(0) 编辑
摘要: 今天初次使用Python Tkinter来做了个简单的记事本程序。发现Python2.x和Python3.x的Tkinter模块的好多内置函数都有所改变,这里简单整理一下以备日后查验。 一.导入方式: Python2.x: from Tkinter import * Python3.x: from 阅读全文
posted @ 2019-07-18 14:46 我若亦如风 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 1.在home目录下修改.gitconfig(没有新建) 2. 在home下新建 .setCommitMsg 文件 3.然后将一下内容复制到文件中 4.保存之后就可以提交了 直接通过 git commit 回车 效果如下: 阅读全文
posted @ 2019-07-10 15:50 我若亦如风 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1.在封装好的组件上使用,所以要加上.native才能click 2.prevent就相当于..event.preventDefault() 所以@click.native.prevent是用来阻止默认行为的 ; 参考链接:https://blog.csdn.net/caimaomaocai/art 阅读全文
posted @ 2019-07-06 20:11 我若亦如风 阅读(5732) 评论(0) 推荐(0) 编辑
摘要: switchTab成功跳转后调用success,此时可以拿到跳转后页面的page对象,从而调用页面onLoad方法重载页面;微信后期应该会加相应的参数来决定是否刷新跳转 参考链接:https://www.jianshu.com/p/c95bdffe80bc 阅读全文
posted @ 2019-07-02 14:26 我若亦如风 阅读(9579) 评论(0) 推荐(0) 编辑
摘要: 小程序实现微信朋友圈时间显示效果: 1分钟前,2分钟前,···,59分钟前,1小时前,2小时前,···,23小时前,一天前,2天前,2019-06-21 等等... 相关代码如下:getTime() { let start = '2019-6-21 22:41:00' let nowTime = n 阅读全文
posted @ 2019-06-24 23:06 我若亦如风 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: 先来看段简单代码: #!/usr/bin/env python3 # print absolute value of an integer: a = 100 print(A) # name 'A' is not defined if a >= 0: print(a) else: print(-a) 阅读全文
posted @ 2019-06-24 15:27 我若亦如风 阅读(278) 评论(0) 推荐(0) 编辑
摘要: pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。 Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。 pip 官网:https: 阅读全文
posted @ 2019-06-24 14:22 我若亦如风 阅读(2645) 评论(0) 推荐(0) 编辑
摘要: {"errcode":40029,"errmsg":"invalid code, hints: [ req_id: aELCyY4ce-WOFLAa ]"} 通过微信官方提供的接 https://api.weixin.qq.com/sns/oauth2/access_token接口,获取openid 阅读全文
posted @ 2019-06-24 10:06 我若亦如风 阅读(14434) 评论(0) 推荐(0) 编辑
摘要: <textarea show-confirm-bar="false"></textarea> 不生效怎么办》? 小程序 改成 show-confirm-bar = "{{false}}" uni-app改成 :show-confirm-bar = "false" 阅读全文
posted @ 2019-06-19 10:58 我若亦如风 阅读(869) 评论(1) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页