GithubHelp home page GithubHelp logo

Comments (3)

cssmagic avatar cssmagic commented on May 28, 2024
  • 阅读expect.js的源代码,了解他的构造,然后在内部添加所需要的deepEqual方法
  • 可以看到eql方法其实思路和deep equal的思路是一样的,只不过expect.js的eql方法对于类型没有卡死,只要==满足就可以了,这和我们需要的是不一样的,所以其实只要以eql的代码为基础修改一下某一些情况下的判断就可以了。

如果要求不是特别严格的话,或者说,不会踩到类型转换的坑的话,可以直接拿 expect.js 的 .eql() 来用。这样可以省很多事情。

from gearbox.

cssmagic avatar cssmagic commented on May 28, 2024

这个坑是因为,通过jquery创造iframe的时候,jquery创造了一个全局变量就是这个iframe的id……

这应该不是 jQuery 的坑,因为在其它浏览器下不出现。把 iframe 的 id 映射为一个全局变量应该是 IE 的行为。

from gearbox.

cssmagic avatar cssmagic commented on May 28, 2024

此工作已完成,感谢你的努力! 👏

from gearbox.

Related Issues (17)

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.