2024年6月1日发(作者:)
t(child, base, [properties])
Simple class inheritance.
function Animal(name) {
= name;
}
function Dog() {
(this, arguments);
}
t(Dog, Animal, {
bark: function() {
alert();
}
});
var dog = new Dog('Spaikie');
();
(fn, scope)
Simple alternative for
.
function myFunction(ev) {
(this === myContext); // is true
}
var myContext = {
a: true,
b: false
};
ntListener('load', (myFunction, myContext), false);
ed(obj, name)
Get the (prefixed) property from the browser.
ed(, 'userSelect');
// returns "webkitUserSelect" on Chrome 35


发布评论