Say I create an object as follows:
(说我创建一个对象,如下所示:)
var myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI",
"regex": "^http://.*"
};
What is the best way to remove the property regex
to end up with new myObject
as follows?
(删除属性regex
以产生新的myObject
的最佳方法是什么?)
var myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI"
};
ask by johnstok translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…