2020-07-24:css写箭头、405报错、高度设置、深度监听、图片?size=22*22、vue 使用 this.$router.push() 传参

1、css写箭头

2、405报错,请求的get post方法

3、$height:200px; //全局变量声明不在大花括号内

4、async await promise

await 后面放置的就是返回promise对象的一个表达式

5、深度监听!

8 3 1.png

css:
word-wrap: break-word;设置文字换行

6、图片

图片的像素设置:即在src后面拼接:?size=22*22

7、vue 使用 this.$router.push() 传参

1、
this.$router.push({name: 'Journalh', params: {id: obj.id}})
// 获取参数
this.$route.params.id
2、
this.$router.push({path: 'Journalh', query: {id: obj.id}})
// 获取参数
this.$route.query.id
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。