1 Star 0 Fork 2

lovenjoe / HF_debugging

forked from 思量短_. / HF_debugging 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
思量短_. 提交于 2022-01-27 14:49 . 优化vue 3
<script>
export default {
globalData: {
embed: null,
arr:[1,2,3,4,4,3,3,3,]
},
onLaunch: function() {
},
onShow: function() {
console.log("test-log###","@@@111","%%%","$$$")
console.error("test-error",undefined)
console.warn("test-warn")
console.info("test-info")
console.log("test-log",{a:'ddd',b:'ddd',c:{a:'ddd',b:'ddd'}})
console.log("globalData",this.globalData)
uni.setStorageSync("ktet","dafdsa")
uni.setStorageSync("ktetDATA",{a:'ddd',b:'ddd'})
// this.getApi()
this.$nextTick(function(){
console.log("getApp()",getApp())
})
},
onHide: function() {
console.log('App Hide')
},
methods:{
getApi(){
uni.request({
url:"http://www.baidu.com/wechat_shop_active/hot_key",
data:{"test":"ttttt","test2":"ttttt"},
method:"POST",
success(res) {
console.log("res",res)
}
})
uni.request({
url:"http://www.baidu.cn/wechat_shop_active/1",
data:{"test":"ttttt"},
method:"POST"
})
},
}
}
</script>
<style>
/*每个页面公共css */
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lovenjoe/hf_debugging.git
git@gitee.com:lovenjoe/hf_debugging.git
lovenjoe
hf_debugging
HF_debugging
master

搜索帮助