摘要:        
问题: 实现页面跳转:index页面通过按钮跳转到next页面 方法: 1、页面index.wxml增加一个按钮 1 // index.wxml 2 <button bindtap="jump">跳转</button> 2、在index.js中添加跳转逻辑 1 // 调转函数 2 jump: fun    阅读全文
posted @ 2020-02-14 23:27
PamShao
阅读(492)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题 在页面上显示当前时间(日期) 方法 1、在util.js (创建项目自动生成)中: // util.js const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1    阅读全文
posted @ 2020-02-14 22:42
PamShao
阅读(7298)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题 想在打开小程序时就自动播放背景音乐(循环) 解决方法 1、思路:写一个函数,在 onLoad()中调用 //index.js //获取应用实例 const back = wx.getBackgroundAudioManager(); Page({ ......................     阅读全文
posted @ 2020-02-14 21:34
PamShao
阅读(6075)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号