12 2021 档案

PC端自适应使用rem 移动端适配升级版
摘要:做一个PC端的网页,设计图是1920X1080,要在常见屏上显示正常 ,比如:1280X720 1366X768 1440X900 1920X1080。就要使用REM,width、height、margin、padding、left、top都采用了REM,**注意:**HTML的FONT-SIZE设 阅读全文

posted @ 2021-12-31 14:45 水行者 阅读(650) 评论(0) 推荐(0) 编辑

vs code 配置git path
摘要:"git.path": "D:/dev/git/bin/git.exe", "terminal.integrated.shell.windows": "D:/dev/git/bin/bash.exe", "git.autofetch": true, 阅读全文

posted @ 2021-12-26 14:46 水行者 阅读(291) 评论(0) 推荐(0) 编辑

axios解决跨域问题(vue-cli3.0)
摘要:axios解决跨域问题(vue-cli3.0) 阅读目录 一、什么是跨域 1、跨域 2、同源策略 3、跨域问题怎么出现的 二、使用 axios 演示并解决跨域问题(vue-cli3.0) 1、项目创建、与 axios 的使用 2、跨域问题重现 3、解决跨域问题 回到顶部 一、什么是跨域 1、跨域 指 阅读全文

posted @ 2021-12-12 15:26 水行者 阅读(3842) 评论(0) 推荐(0) 编辑

[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading 'state')"
摘要:异常:[Vue warn]: Error in render: "TypeError: Cannot read properties of undefined (reading 'state')" 出现这个bug的原因是没在main.js中引入store.js并挂载在vue实例上 import Vu 阅读全文

posted @ 2021-12-12 10:46 水行者 阅读(18823) 评论(0) 推荐(1) 编辑

vue router-view 添加选中样式
摘要:通过router的linkExactActiveClass 属性进行css样式绑定。 const router = createRouter({ history: createWebHashHistory(), routes, linkExactActiveClass:'active' }); 阅读全文

posted @ 2021-12-11 18:18 水行者 阅读(366) 评论(0) 推荐(0) 编辑

vs code vue扩展工具
摘要:Vue VSCode Snippets -快速生成代码 阅读全文

posted @ 2021-12-11 18:08 水行者 阅读(136) 评论(0) 推荐(0) 编辑

rem自适应
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2021-12-03 23:53 水行者 阅读(25) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示