2
例如,如果我的腳本...如何獲得「孩子」或功能的內容?
function cool() {
function yes() { alert('yes'); }
function wow() { alert('wow'); }
}
,而且我用cool.toString();
然後我得到整個函數的字符串。
但是我必須做的只是得到內部內容作爲字符串:
function yes() { alert('yes'); }
function wow() { alert('wow'); }
感謝!!!!!!!!! – supercoolville