Comments (3)
- 阅读expect.js的源代码,了解他的构造,然后在内部添加所需要的deepEqual方法
- 可以看到eql方法其实思路和deep equal的思路是一样的,只不过expect.js的eql方法对于类型没有卡死,只要==满足就可以了,这和我们需要的是不一样的,所以其实只要以eql的代码为基础修改一下某一些情况下的判断就可以了。
如果要求不是特别严格的话,或者说,不会踩到类型转换的坑的话,可以直接拿 expect.js 的 .eql()
来用。这样可以省很多事情。
from gearbox.
这个坑是因为,通过jquery创造iframe的时候,jquery创造了一个全局变量就是这个iframe的id……
这应该不是 jQuery 的坑,因为在其它浏览器下不出现。把 iframe 的 id 映射为一个全局变量应该是 IE 的行为。
from gearbox.
此工作已完成,感谢你的努力! 👏
from gearbox.
Related Issues (17)
- API 文档 - `action` 模块
- 使用 gulp-filter 来改进构建环节 HOT 2
- 需要为 ua 模块增加判断常见手机浏览器及其版本的功能 HOT 2
- 需要一个 preload 模块,预加载指定资源(或通过结构预加载资源)
- 废除 `.isPlainObject()` API
- API 文档 - `template` 模块
- 新建一个适配文件,便于从 v0.5 升级到 v0.6
- `url.appendParam(url, params)` 接口的小问题
- `str` 模块可以增加对 QQ 号检测的正则表达式
- `gearbox.str.uniq()` 的功能可由 `_.uniq()` 覆盖,没有必要存在 HOT 1
- 适配新的手机号段 199、198、166 HOT 1
- API 文档 - `dom` 模块 HOT 1
- API 文档 - `str` 模块 HOT 1
- API 文档 - `ua` 模块 HOT 1
- API 文档 - `url` 模块 HOT 1
- `str` 模块中的 `str.include()` 需要改名为 `str.includes()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gearbox.