1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 17:24:05 +08:00
ContextOS/usr/librarys/example.js
2019-04-16 08:41:34 +08:00

18 lines
298 B
JavaScript

exp = example = {
__proto__: ctx,
_init: function(page) {
page.__proto__ = this
return this
},
reload: function() {
location.reload()
},
}
function Page(page) {
window.onload = function() {
page.init(exp._init(page))
}
return page
}