上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 144 下一页
摘要: 实现原理,在首屏设置时间,进行倒计时,然后跳转页面 具体代码实现: <view id="first"><image id="inner" src="{{picture}}"></image><text id="text">{{time}}s</text></view> 文章来源:刘俊涛的博客 地址: 阅读全文
posted @ 2018-03-07 11:08 刘俊涛的博客 阅读(448) 评论(0) 推荐(0)
摘要: 快捷键 格式调整 - Ctrl+S:保存文件 - Ctrl+[, Ctrl+]:代码行缩进 - Ctrl+Shift+[, Ctrl+Shift+]:折叠打开代码块 - Ctrl+C Ctrl+V:复制粘贴,如果没有选中任何文字则复制粘贴一行 - Shift+Alt+F:代码格式化 - Alt+Up,Alt+Down:上下移动一行 - Shift+Alt+Up,Shift+... 阅读全文
posted @ 2018-03-06 15:30 刘俊涛的博客 阅读(2077) 评论(0) 推荐(0)
摘要: 使用flex属性两边边距自适应解决方案 Justify-content:center 文章来源:刘俊涛的博客 地址:http://www.cnblogs.com/lovebing 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-03-06 15:14 刘俊涛的博客 阅读(2061) 评论(0) 推荐(0)
摘要: 注:image组件默认宽度300px、高度225px mode 有效值: mode 有 13 种模式,其中 4 种是缩放模式,9 种是裁剪模式。 缩放: 裁剪: 文章来源:刘俊涛的博客 地址:http://www.cnblogs.com/lovebing 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-03-06 15:07 刘俊涛的博客 阅读(17634) 评论(0) 推荐(1)
摘要: 一:跳转的数据传递 例如:wxml中写了一个函数跳转: [html] view plain copy 已完成任务 {{finishedMissionCount}} 在js代码中写:其中,url是跳转的相对路径,?问号后面加的是参数, 以key-value的方式,这里传了个value为2的... 阅读全文
posted @ 2018-03-06 14:47 刘俊涛的博客 阅读(2797) 评论(2) 推荐(0)
摘要: flex容器属性详解 flex-direction决定元素的排列方向 flex-wrap决定元素如何换行 flex-flow 是 flex-direction 和flex-wrap的简写 justify-content元素在主轴的对齐方式 align-items元素在交叉轴的对齐方式 flex元素属性详解 flex-grow 当有多余空间时,元素的放大比例 默认值是0 flex-s... 阅读全文
posted @ 2018-03-05 18:05 刘俊涛的博客 阅读(1095) 评论(0) 推荐(0)
摘要: bindtap可以产生冒泡事件 catchtap只自身触发事件,不会传递到父视图 文章来源:刘俊涛的博客 地址:http://www.cnblogs.com/lovebing 欢迎关注,有问题一起学习欢迎留言、评论。 阅读全文
posted @ 2018-03-05 16:36 刘俊涛的博客 阅读(934) 评论(0) 推荐(0)
摘要: 修改该页面的wxss文件 /* pages/weather/weather.wxss */ .weather{ position: fixed; height: 100%; width: 100%; display:flex; flex-direction:column; /*纵向显示*/ alig... 阅读全文
posted @ 2018-02-01 11:23 刘俊涛的博客 阅读(7147) 评论(0) 推荐(0)
摘要: javascript -- event.keycode值大全(2009-07-26 11:14:52)转载标签: it 分类: JavaScript keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 = Shift_L ... 阅读全文
posted @ 2018-01-29 11:45 刘俊涛的博客 阅读(1545) 评论(0) 推荐(0)
摘要: 禁止页面缓存 header("Cache-Control:no-cache"); header("Pragma:no-cache"); header("Expires:-1"); url地址唯一 obj.open(‘get’,’服务器地址?’+随机数,true); 阅读全文
posted @ 2018-01-29 11:41 刘俊涛的博客 阅读(806) 评论(0) 推荐(0)
上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 144 下一页