Terminal Basic

Shell Language

  • The most popular shell language is Bash.
  • Modern MacOS versions ship with Zsh instead of Bash
  • ~: is shorthand for the user’s home directory. e.g. “/Users/wayne”
  • -: bounce back and forth between two directories
    • gco - even can change between Git branches
  • pwd: Print Working Directory

DOM Core学习分享

概览

The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document

DOM 方法可以用于访问和操作 document 对象(结构、样式、内容)。
DOM 核心 API 就可以调用来创建和填充 Document 对象。

DOM Structure Model

参考链接

w3c.org
HTML

Vue2 Volar插件问题

现象

正常的sfc的vue文件提示提示一下奇怪的JSX问题,甚至有解析成React之类的…

1
2
Type '{ class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
Property 'class' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'. Did you mean 'className'?

pic1
pic2

解决方法

  1. vue2用vetur,vue3的项目再用volar
  2. 参考插件提供的 解决方式
    pic2