这个函数的功能是什么?
代码里面看到有这么个函数,请教下,这个是干嘛的?
function setpage(data_topic) {
var questions = data_topic;
var $ = {};
$.extend = function(destination, source, override) {
if (override === undefined)
override = true;
for (var property in source) {
if (override || !(property in destination)) {
destination[property] = source[property];
}
}
return destination;
}