Warning in ./libraries/config/FormDisplay.php#661
"continue" targeting switch is equivalent to "break". Did you mean to...
4年前 (2021-08-06)
喜欢
这里获取config需要修改uview ui文件 添加一段代码用来获取config
response.config = options
这样就可以获取config了
{
"data": {
"code": 100...
4年前 (2021-08-06)
喜欢
<script>
import {
get_lists
} from '@/config/api.js'
export default {
data() {
retur...
4年前 (2021-08-05)
喜欢
查询方式1
products.findAll({
attributes: ['prdName', 'price'],
include: [{
model: user,
...
4年前 (2021-08-05)
喜欢
api
// 收藏列表
collectionApi.linPost(
'collection',
'/list',
user.permission('收藏'),
loginRequired,
...
4年前 (2021-08-05)
喜欢
在使用pm2运行的项目发现一直报502错误,排查过后发现是因为pm2开启了watch后,pm2一直在重启项目造成的,把watch关闭后就搞定了
...
4年前 (2021-08-04)
喜欢
使用前需要先购买阿里云短信以及相关配置
安装依赖
cnpm i @alicloud/pop-core --save
api
// 发送验证码
smsApi.post('/captcha', async ctx => {
const tel = ct...
4年前 (2021-08-04)
喜欢
百度地图的api可以查询天气,但是需要是服务端才可以使用,作为前端,没有后端的辅助想要实现的话 就需要借助node和koa2来实现啦
api
smsApi.post('/weather', async ctx => {
console.log(ctx...
4年前 (2021-08-04)
喜欢
启动app.js应用程序
pm2 start app.js
模式启动4个app.js的应用实例
pm2 start app.js -i 4
启动应用程序并命名为 "api"
pm2 start app.js --name="api"
...
4年前 (2021-07-28)
喜欢
var m1 = moment('2018-08-14 11:00:00'),
m2 = moment('2018-08-14 12:10:00');
console.log(m1)
console.log(m2)
console.log(...
4年前 (2021-07-22)
喜欢