feat: 初始化工程
This commit is contained in:
23
.agents/bak-skills/uniapp-ad/examples/integration/events.md
Normal file
23
.agents/bak-skills/uniapp-ad/examples/integration/events.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 广告事件处理
|
||||
|
||||
## 官方文档
|
||||
|
||||
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
|
||||
|
||||
## 示例
|
||||
|
||||
```javascript
|
||||
rewarded.onLoad(() => {
|
||||
console.log('广告加载成功')
|
||||
})
|
||||
rewarded.onError(err => {
|
||||
console.error('广告加载失败', err)
|
||||
})
|
||||
rewarded.onClose(res => {
|
||||
console.log('广告关闭', res)
|
||||
})
|
||||
```
|
||||
|
||||
## 参考资源
|
||||
|
||||
- https://uniapp.dcloud.net.cn/uni-ad/
|
||||
Reference in New Issue
Block a user