前端作业提交流程
使用步骤
- Fork此项目。
- 本地开发运行:
cd $工作目录
git clone 刚才fork的仓库地址
cd fe-homework
npm install
npm run start
- 创建目录,完成作业。
- commit修改,并push到github。
cd $工作目录
git clone 刚才fork的仓库地址
cd fe-homework
npm install
npm run start
# 找出占用端口号的进程(最后一位数字就是进程id)
netstat -ano|findstr 8000
# 再使用以下命令杀掉指定进程
tskill 11644 # 这个数字需要改成上一步查到的
From: uemuki
有些网页上清除浮动使用.clearfix:after {}
中会比课上的多几个属性“height: 0;”、“inline-height: 0;”、“visibility: hidden;”,既然content、display、clear已经够用了,为什么要写这些写属性?有些还需要再写上.clearfix {zoom: 1;}
来解决兼容性问题,在好多地方看到过zoom: 1;
这个属性-值,那么它的本质意义是什么呢, 在什么情况下可以使用它呢?
在js中变量能够提升层级。
函数也可以提升层级。
但是,提升层级不是只是告诉浏览器我定义了这个变量,并没有告诉浏览器我的内容就不怎么明白。比如这个
elem = document.getElementById("demo"); // 查找元素
elem.innerHTML = x; // 在元素中显示 x 最终显示为undefined。
var x=5; // 声明 x
我这个也是存在变量提升,但是未取得变量内容。
还有变量的默认声明。
elem = document.getElementById("demo"); // 查找元素
elem.innerHTML = x; // 在元素中显示 x 最终显示为不显示。不应该显示为undefined么?
x=5; // 声明 x 只是采用的默认声明
函数声明就直接取得函数体的内容?在浏览器第一遍读取的时候?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.