function abc(obj) {
obj.query?obj.query(): console.log('no query');
obj.callback && (this.callback = obj.callback);
}
abc({
"query1": function query() { console.log("i am query") },
"callback": function (row) { return row + "i am callback"}
})
function abc(obj) {
obj.query?obj.query(): console.log('no query');
obj.callback && (this.callback = obj.callback);
}
abc({
"query1": function query() { console.log("i am query") },
"callback": function (row) { return row + "i am callback"}
})
本文标题:js 回调方法
本文链接:https://www.haomeiwen.com/subject/pvcpbktx.html
网友评论