Apply, Call under non-high version browser

zhaozj2021-02-16  87

Apply, call, how to use it, you can introduce it here, you can take information, you can tell them is very useful. If you don't say it, you can see the code directly.

IF (PARSEINT.APPLY)! = 'function') {function.Prototype.Apply = function (obj, argu) {var s; if (obj) {obj.constructor.prototype._caller = this; s = "OBJ ._caller ";} else {s =" this ";} var argus = new array (); for (var i = 0; i

First implement Apply, use Apply to implement Call. Plus Parseint.Apply to determine if it is a high version, and has supported Apply and Call.

转载请注明原文地址:https://www.9cbs.com/read-12004.html

New Post(0)