js里的fetch方法 前端技术
fetch()方法是用来替代原来的ajax方法的,据说用的Promise,但是这个我不太懂,只能记录几个常用例子。
发送get请求
fetch('a.php?name=nciaer&age=18').then(res => {
if(res.ok && res.status == 200) { // 如果请求正确,那么o...
搜索
日历
微语
-
uniapp里style标签里加上scoped属性意思是用来实现样式隔离,scoped字面意思就是范围的,也就是这个style里的css样式仅在这个页面生效,生成后的源码都会有一个额外的data-v-xxx类。
nciaer 4 个月前
-
人的生命只有一次,努力,奋斗,相信自己!
nciaer 1 年前
-
2024年努力搞钱,开源节流!
nciaer 1 年前
标签
分类
存档
最新评论
-
nciaer
27 天前
44444444444444444444...
-
nciaer
27 天前
555555555
-
nciaer
27 天前
444444444444
-
nciaer
27 天前
333333333333
-
nciaer
27 天前
55555555
-
nciaer
27 天前
4444444
-
nciaer
27 天前
33333333
-
nciaer
27 天前
@nciaer:222
-
nciaer
27 天前
测试评论还能生效吗?
-
nciaer
1 个月前
[img]https://emlog.n...