GithubHelp home page GithubHelp logo

css about front-end-trivia HOT 5 OPEN

yeecai avatar yeecai commented on July 29, 2024
css

from front-end-trivia.

Comments (5)

yeecai avatar yeecai commented on July 29, 2024

flex princple

from front-end-trivia.

yeecai avatar yeecai commented on July 29, 2024

document.querySelectorAll("#container li[data-tag~=css] h2:not(.Retired):not(.GroupNote)")

from front-end-trivia.

yeecai avatar yeecai commented on July 29, 2024

console.log( Math.abs(0.1 + 0.2 - 0.3) <= Number.EPSILON);

from front-end-trivia.

yeecai avatar yeecai commented on July 29, 2024

number类型运算都要想将其转化为二进制,将二进制运算,运算的结果再转化为十进制,因为number是64位双精度,小数部分只有52位,但0.1转化成为二进制是无限循环的,所以四舍五入了,这里就发生了精度丢失,0.1的二进制和0.2的二进制相加需要保留有效数字,所以又发生了精度丢失,所以结果为0.300000000000004,所以为false,而0.2+0.3恰好两个转化成为二进制和相加的过程都不会发生精度丢失,所以为true,如果你看不懂推荐看看这个教程:https://www.taopoppy.cn/Front-end/javascript_type.html#number-%E7%B1%BB%E5%9E%8Bnumber类型运算都要想将其转化为二进制,将二进制运算,运算的结果再转化为十进制,因为number是64位双精度,小数部分只有52位,但0.1转化成为二进制是无限循环的,所以四舍五入了,这里就发生了精度丢失,0.1的二进制和0.2的二进制相加需要保留有效数字,所以又发生了精度丢失,所以结果为0.300000000000004,所以为false,而0.2+0.3恰好两个转化成为二进制和相加的过程都不会发生精度丢失,所以为true,如果你看不懂推荐看看这个教程:https://www.taopoppy.cn/Front-end/javascript_primitiveType.html#_5-%E7%B2%BE%E5%BA%A6%E4%B8%A2%E5%A4%B1%E7%9A%84%E5%8E%9F%E5%9B%A0%E5%92%8C%E8%A7%A3%E5%86%B3

from front-end-trivia.

yeecai avatar yeecai commented on July 29, 2024
  • application/json
  • application/x-www-form-urlencoded //htmlform default
  • multipart/form-data// file upload default
  • text/xml

from front-end-trivia.

Related Issues (20)

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.