Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array.prototype.size这段代码会导致整个js文件不能用 #9

Closed
arsen2010 opened this issue Nov 19, 2016 · 2 comments
Closed

Comments

@arsen2010
Copy link

Array.prototype.size = function (length) {
this.length = length;
}

@dntzhang
Copy link
Collaborator

为什么? @pageborn

@arsen2010
Copy link
Author

arsen2010 commented Nov 19, 2016

我也觉得奇怪,js文件是异步用script标签引入的,引入后不完全执行,开始检查问题,发现把上面代码去掉就正常了,浏览器信息
navigator.userAgent
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants