如何使用Object.create()继承?我尝试了这些,但都不起作用:var A = function() {};A.prototype.C = function() {};var B = function() {};A.prototype.C = function() {};和
var B = function
variables this.priority = priority;// Second you need to inherit it's prototypes// UrgentTask.prototype = Object.create(Task.prototype);
UrgentTask.prototype = Task.prototype;