I am ne zha / Jeskson
I am ne zha / Jeskson
A: Difference 1: link is XHTML tag, in addition to loading CSS, can also be used to define RSS, define rel connection attributes, etc. @import is provided by CSS and...
> “对象实例的原型可以通过 Obeject.getPrototypeOf(object) 或 proto 属性获得”,这里应该是 __ proto __ 属性吧。两边双下划线加粗了 嗯嗯🤔 ,md语法显示问题,已更新!!!
```js /** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * }...
```js /** * @param {number} n * @return {boolean} 202. 快乐数 快慢指针的方法 */ var isHappy = function(n) { // 第一步判断n是不是等于1 if(n === 1) return true // 定义两个指针,一个每次走一步 let p =...
```js /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} head * @return {ListNode}...
快慢指针法: ```js /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } 141. 环形链表 */ /** * @param {ListNode} head...
如果是你,你怎么回答呢? [【深入理解JS核心技术】1.在 JavaScript 中创建对象的可能方式有哪些?](https://github.com/webVueBlog/Leetcode/issues/13#)
```js /** * Definition for singly-linked list. * function ListNode(val, next) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * }...
```js var reverseBetween = function(head, left, right) { const dummyNode = new ListNode(-1); dummyNode.next = head; // 虚拟头节点 let pre = dummyNode; for (let i = 0; i < left...
```js import accountPage from '../../components/account-page/account-page.vue' export default { components: { accountPage, }, data() { return { accountData: [ { id: 1, account: 'admin', show: false, children:[ { id: 2, account:...