当前位置:网站首页>Applet cloud data, data request a method to collect data
Applet cloud data, data request a method to collect data
2022-06-24 09:07:00 【Secret Shura】
Here are two different ways for code to request data
Contains ES5 ES6 Two different methods , So you experience the difference between the two methods
Here are some Inline code slice
.
// An highlighted block
One 、 This is a ES5 Method : personcritics It's the set name
onShow(){
db.collection('personcritics').get(
{
success:function(res){
console.log(res)
}
}
)
}
Two 、 One 、 This is a ES6 Method : personcritics It's the set name
onShow(){
db.collection('personcritics').get().then(res=>{
console.log(res)
})
}
var foo = 'bar';
边栏推荐
- [noi Simulation Competition] send (tree DP)
- 4274. 后缀表达式
- [noi simulation] pendulum (linear algebra, Du Jiao sieve)
- 216. 组合总和 III-枚举法
- Analyze the meaning of Internet advertising terms CPM, CPC, CPA, CPS, CPL and CPR
- Telnet port login method with user name for liunx server
- 【ES6闯关】Promise堪比原生的自定义封装(万字)
- 开源之夏中选名单已公示,基础软件领域成为今年的热门申请
- 阿里资深软件测试工程师推荐测试人员必学——安全测试入门介绍
- Remote connection of raspberry pie without display by VNC viewer
猜你喜欢
"Unusual proxy initial value setting is not supported", causes and Solutions
【牛客】把字符串转换成整数
什么是图神经网络?图神经网络有什么用?
How to configure environment variables and distinguish environment packaging for multi terminal project of uniapp development
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
Ordinary people have no education background. Can they earn more than 10000 yuan a month by Self-taught programming?
[MySQL from introduction to mastery] [advanced part] (I) character set modification and underlying principle
"I can't understand Sudoku, so I choose to play Sudoku."
[quantitative investment] discrete Fourier transform to calculate array period
Linux (centos7.9) installation and deployment of MySQL Cluster 7.6
随机推荐
MySQL | 存储《康师傅MySQL从入门到高级》笔记
I heard that you are still spending money to buy ppt templates from the Internet?
[use picgo+ Tencent cloud object to store cos as a map bed]
【LeetCode】541. 反转字符串 II
开源之夏中选名单已公示,基础软件领域成为今年的热门申请
4275. Dijkstra序列
Database migration from PostgreSQL to MySQL
12、 Demonstration of all function realization effects
MySQL data (Linux Environment) scheduled backup
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
On the routing tree of gin
How to configure environment variables and distinguish environment packaging for multi terminal project of uniapp development
华为路由器:GRE技术
【LeetCode】541. Reverse string II
JS to find and update the specified value in the object through the key
【ES6闯关】Promise堪比原生的自定义封装(万字)
Jincang KFS replicator installation (oracle-kes)
Spark - LeftOuterJoin 结果条数与左表条数不一致
Idea another line shortcut
怎么把mdf和ldf文件导入MySQL workbench中