If I store a javascript function inside an Object like this :
(如果我将javascript函数存储在这样的Object中:)
jsObject = { TestFuntion1 : function(){ var x = 1; return x; }, TestFunction2 : function(){ console.log("Hello World"); } }
Can I get the content of these function as a string ?
(我能否以字符串形式获取这些函数的内容?)
var x = 1; return x; /*OR*/ console.log("Hello World");
I tried playing with the 'prototype', but nothing seems to return me the content of it.
(我曾尝试过使用“原型”,但似乎没有任何东西可以退还给我。)
Thank you for your help ! (谢谢您的帮助 !)
ask by Tryall Allombria translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…