Moushudyx
Moushudyx
文言文的精炼特点有很多表现,比如用**单字表示一个动作**🤔我的想法是这样的: ``` 数三曰「甲」。 数零曰「乙」。 文「敬天地」曰「丙」。 若「乙」小于「甲」恒 书「丙」。 「乙」加一。 之 ``` 或者 ``` 数「甲」为三。 数「乙」为零。 文「丙」为「敬天地」。 若「乙」小于「甲」恒 书「丙」。 「乙」加一。 之 ``` 用单字“数”来表示声明一个数字,“文”表示声明一个字符串,“为”表示赋值,“书”表示打印到控制台。 用`若...恒...之`的结构来表示条件循环结构(类似于`while(...){...}`的结构),三个单字分别表示判断、循环、语义块结束。 分支结构可以用`若...则...否则...`、`若...则...否则若...则...否则若....则...否则...`(`if (...) {...}else if(...) {...} else if(...) {...}...
```js Object.defineProperties(Number.prototype, { add: { // 加 value: function (num) { return this + num; } }, sub: { // 减 value: function (num) { return this - num; }...
思来想去,还是直接上来的简单,加了一丢丢脑补: ```js const getAttribute = (obj, attr, defaultValue = undefined) => { if(typeof attr === 'number' || typeof attr === 'symbol') { // 数字或 Symbol 属性 // 题目没讲,视为合法 if(attr in...
It wont work if disable-devtools is bundled and mixed with other codes ( and minified ), which is a very common case for front-end development