0
使用下面的例子,是否可以将回调函数的结果发送到控制台,即返回的值是什么?我可以在Firebug中使用console.log()来查看回调函数的结果吗?
rows.sort(function(a, b) {
if(a.sortKey < b.sortKey) return -sortDirection;
if(a.sortKey > b.sortKey) return sortDirection;
return 0;
});
什么会我作为参数使用方法:执行console.log
这将是冷静,如果你能提供控制台。记录为回调函数。 – 0xcaff 2013-09-18 21:25:42