Giter Club home page Giter Club logo

fe-homework's Introduction

前端作业提交流程

使用步骤

  1. Fork此项目。
  2. 本地开发运行:
cd $工作目录
git clone 刚才fork的仓库地址
cd fe-homework
npm install
npm run start
  1. 创建目录,完成作业。
  2. commit修改,并push到github。

fe-homework's People

Contributors

bencode avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fe-homework's Issues

关于清除浮动

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 只是采用的默认声明

函数声明就直接取得函数体的内容?在浏览器第一遍读取的时候?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.