I set the function to variables by using t() method. Now that c is a function right now, I can use the arguments having been passed to this function. But I can not do that. My main goal is that to set the data to i and use the data inside the code.
var i = 5;
var c;
var t = function(x) {
this.c = x;
};
t(function(data) {
console.log(data);
});
c.arguments[0] = i;
c();
Aucun commentaire:
Enregistrer un commentaire