随笔分类 -  前端

前端类
摘要:axios简单使用例子 import axios from 'axios' export default { name: 'Test', data(){ return{ msg:"Welcome" } }, mounted() { //get axios.get( "/api/qc/sfaa-t/C 阅读全文
posted @ 2022-12-26 13:49 树之下 阅读(1367) 评论(0) 推荐(0)
摘要://查看路径信息 npm config ls npm config set prefix "D:\Program Files\nodejs\node_gobal" npm config set cache "D:\Program Files\nodejs\node_cache" //yarn yar 阅读全文
posted @ 2022-12-22 13:17 树之下 阅读(94) 评论(0) 推荐(0)
摘要:夫传子 父组件代码 子组件代码 效果展示 <template> <h1>{{ msg }}</h1> </template> <script> export default { name: 'HelloWorld', props: { msg:{ type:String, default:"" } 阅读全文
posted @ 2022-12-22 10:58 树之下 阅读(24) 评论(0) 推荐(0)
摘要:前言 相关官方文档:https://cn.vuejs.org/guide/introduction.html https://cli.vuejs.org/zh/guide/ 创建vue-cli项目 vue create test1 后续选择 项目目录 项目目录结构 components:一些复用组件 阅读全文
posted @ 2022-12-22 10:35 树之下 阅读(32) 评论(0) 推荐(0)
摘要://判断滚动条是否存在 function hasScrollbar() { return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight); } function hi 阅读全文
posted @ 2022-03-11 15:11 树之下 阅读(927) 评论(0) 推荐(0)
摘要:*.3gpp audio/3gpp, video/3gpp 3GPP Audio/Video *.ac3 audio/ac3 AC3 Audio *.asf allpication/vnd.ms-asf Advanced Streaming Format *.au audio/basic AU Au 阅读全文
posted @ 2021-11-03 15:55 树之下 阅读(250) 评论(0) 推荐(0)
摘要:前言 vue官方文档:https://cn.vuejs.org/v2/guide/instance.html 挂载点、实例、模板、插值表达式 <body> <!-- id为root是为vue实例的挂载点 --> <div id="root"> <!-- 插值表达式 --> <h1>{{msg}}</ 阅读全文
posted @ 2021-03-15 21:56 树之下 阅读(52) 评论(0) 推荐(0)