mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
19 lines
488 B
JavaScript
19 lines
488 B
JavaScript
// Comment对象
|
|
|
|
Comment = function Comment() {
|
|
let arg = arguments[0];
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg !== 'bobo') {
|
|
console.log_copy('Comment 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(Comment, "Comment");
|
|
Comment.prototype.__proto__ = CharacterData.prototype;
|
|
Comment.__proto__ = CharacterData; |