请求接口出现404错误?
发布于 6 年前 作者 yang55 8387 次浏览 来自 问答

我的url没有错,但是

3 回复

${options.cat} 这种语法小程序不支持吧 直接写 ‘categories/’ + options.cat 可好

要用${options.cat}的话你要把引号’'改成``

"hello" + str + "world !"
`hello ${str} world !`
js 中` 和 '的区别
回到顶部