摘要:
fetch 是新一代XMLHttpRequest的一种替代方案。无需安装其他库。可以在浏览器中直接提供其提供的api轻松与后台进行数据交互。 基本用法: 1 fetch(url,{parmas}).then(res=> return res.json() //返回promise对象 ).then(d 阅读全文
posted @ 2019-03-13 22:13
ice_sweet
阅读(1105)
评论(0)
推荐(0)
摘要:
1、vue 支持开发者引入 jquery 使用 $.ajax() 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1、首先,在 package.json 中添加 jQuery,然后 npm install "dependencies": { "jquery": " 阅读全文
posted @ 2019-03-13 22:11
ice_sweet
阅读(10992)
评论(0)
推荐(1)

浙公网安备 33010602011771号