引言回覆:
Your add-on still uses the 'eval' function unnecessarily, which is something we normally don't accept.
AMO:Editors/EditorGuide/AddonReviews
https://wiki.mozilla.org/AMO:Editors/Ed ... donReviewsEasy DragToGo+ easydragtogo.js代码段:
主要是下面这段(功能:使用自定义代码)使用了eval:
引言回覆:
customCode: function(code, url, src, target, X, Y) {
eval(code);
},
改為這樣的無法通過,那位大俠知道該如果修改嗎?
引言回覆:
customCode: function (code, url, src, target, X, Y) {
var customFn = new Function("target", "url", "src", "X", "Y", code);
customFn(target, url, src, X, Y);
},