围绕Modernizr源代码,我发现了一件奇怪的事情:
window.Modernizr = (function(window,document,undefined) {
之后,将使用两个参数(this, this.document)调用此函数.
this, this.document
为什么undefined在这里使用?它有意义还是只是奇怪的代码风格?
undefined
javascript modernizr
javascript ×1
modernizr ×1