mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
17 lines
444 B
JavaScript
17 lines
444 B
JavaScript
// getSelection对象
|
|
getSelection = () => {
|
|
console.log(`使用 getSelection arg->`, arguments);
|
|
};
|
|
bodavm.toolsFunc.safefunction(getSelection, "getSelection");
|
|
bodavm.toolsFunc.defineProperty(getSelection, "length", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 0
|
|
});
|
|
bodavm.toolsFunc.defineProperty(getSelection, "name", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 'getSelection'
|
|
}); |