摘要:
传统面向对象多态 例如: //1>必须有继承(是多态的前提)//2>必须有重写(子类重写父类的方法)//3>必须有父类引用指向子类对象class Shape{ getArea(){} } class Reactangle extends Shape{ getArea(){ return 100 } 阅读全文
posted @ 2021-12-21 21:29
无何不可88
阅读(138)
评论(0)
推荐(0)
摘要:
下载 npm 之前需要下载 node,node 官网 http://nodejs.cn/ 傻瓜式安装 国内镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 拥有镜像可以使用 npx 来提升速度 vue2 的项目脚手架搭 阅读全文
posted @ 2021-12-21 16:44
无何不可88
阅读(831)
评论(0)
推荐(0)
摘要:
当文字超出div的宽,以省略号的形式隐藏 1.单行隐藏 white-space:nowrap; overflow:hidden; text-overflow:ellipsis; 2.多行隐藏 word-break: break-all; text-overflow: ellipsis; overfl 阅读全文
posted @ 2021-12-21 16:43
无何不可88
阅读(28)
评论(0)
推荐(0)

浙公网安备 33010602011771号