───✱*.。:。✱*.:。✧*.。✰*.:。✧*.。:。*.。✱ ───
6//?r=⭐ &d=2024/7/1 20:51:30 &b=ly2zba2d
Object.entries() - JavaScript | MDN
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/entries |
Object.entries()
6//?r=⭐ &d=2024/6/9 19:49:58 &b=lx7hfegj
for of 循环获取index值_for of index-CSDN博客
https://blog.csdn.net/Hero_rong/article/details/109536906
const unitC = arrSpliter(cellLineS[0], ’,’); console.log(unitC); const menuUnit = createMenu(unitC[1], 1);
6//?r=⭐ &d=2024/7/3 10:17:06 &b=ly57j52n
循环语句:for、while和do…while循环的比较与应用 - Java基础知识-腾讯云开发者社区-腾讯云
https://cloud.tencent.com/developer/article/2370504 |
while循环是一种在未知循环次数的情况下使用的循环结构,循环条件在循环体之前进行判断。
while循环是一种在未知循环次数的情况下使用的循环结构,循环条件在循环体之前进行判断。
do…while循环也是一种在未知循环次数的情况下使用的循环结构,循环体至少会执行一次,循环条件在循环体之后进行判断。
6//?r=⭐ &d=2024/7/3 11:34:51 &b=ly5ab4na
for、for…of、forEach、for…in、map数组遍历性能比较 - 掘金
https://juejin.cn/post/6869674337461534734 |
for循环遍历 < for…of遍历 < forEach遍历 < for…in遍历 < map遍历
header fields const navMenu = assembleMenuUnit(strSFromline[1]); ulTag.appendChild(navMenu);
const decomposeReconstruct = (rawInput) ⇒ { const paraSFromDoc = arrSpliter(rawInput, ’> ’); const ul_navMenu = document.querySelector(‘ul.nav-menu’); for (let i = 1; i < paraSFromDoc.length; i++) { const lineSFromPara = arrSpliter(paraSFromDoc[i], ‘\n’); const navButtonS = arrSpliter(lineSFromPara[0], ’,’);
const navMenu = assembleMenuUnit(navButtonS[1]);
const ulTag = document.createElement('ul');
navMenu.appendChild(ulTag);
ul_navMenu.appendChild(navMenu);
for (let j = 1; j < lineSFromPara.length; j++) {
const strSFromline = arrSpliter(lineSFromPara[j], ',');
const navMenu = assembleMenuUnit(strSFromline[1]);
ulTag.appendChild(navMenu);
}
} };
6//?r=⭐ &d=2024/7/4 13:19:22 &b=ly6thdis
DocumentFragment - Web API | MDN
https://developer.mozilla.org/zh-CN/docs/Web/API/DocumentFragment | fruits.forEach((fruit) ⇒ { const li = document.createElement(“li”); li.textContent = fruit; fragment.appendChild(li); });
6//?r=⭐ &d=2024/7/5 13:36:19 &b=ly89j151
Document:adoptedStyleSheets 属性 - Web API | MDN
https://developer.mozilla.org/zh-CN/docs/Web/API/Document/adoptedStyleSheets |
replaceSync
6//?r=⭐ &d=2024/7/5 13:34:42 &b=ly89gy8c
CSSStyleSheet: CSSStyleSheet() constructor - Web APIs | MDN
https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet |
replaceSync
6//?r=⭐ &d=2024/7/7 10:54:23 &b=lyaymhkh
花猪特征和品种
https://chatgpt.com/c/42039342-6e9f-461a-b0e2-cd7625ab783e | // Create triggerField const triggerField = document.createElement(‘div’); triggerField.id = ‘triggerField’; triggerField.style.position = ‘fixed’; triggerField.style.bottom = ‘0px’; triggerField.style.right = ‘0px’; triggerField.style.width = ‘40px’; triggerField.style.height = ‘40px’; triggerField.style.backgroundColor = ‘#333’; document.body.appendChild(triggerField);
// Create navBar const navBar = document.createElement(‘div’); navBar.id = ‘navBar’; navBar.style.position = ‘fixed’; navBar.style.bottom = ‘40px’; navBar.style.width = ‘818px’; navBar.style.height = ‘40px’; navBar.style.backgroundColor = ‘#555’; navBar.style.display = ‘none’; document.body.appendChild(navBar);
// Function to show navBar triggerField.addEventListener(‘mouseover’, () ⇒ { navBar.style.display = ‘block’; });
// Function to hide navBar navBar.addEventListener(‘mouseleave’, () ⇒ { navBar.style.display = ‘none’; });
[^/=\b]+(?=.[^/.]) [^/=\d]+(?=.\d.[^/.])*(css|js)$ https://6cc.github.io/3/craigErskine.css https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.31/fancybox/fancybox.min.css https://cdnjs.cloudflare.com/ajax/libs/fancyapps-ui/5.0.31/fancybox/fancybox.umd.min.js https://hentai-cosplays.com/image/djawa-hanari-swimming-lessons-13-c/page/8/
http://static12.hentai-cosplays.com/upload/20230718/338/345510/p=700/77.jpg
[^/.]+)
6//?r=⭐ &d=2024/7/7 15:03:15 &b=lyb7ij0j
replace - How to trim a file extension from a String in JavaScript? - Stack Overflow
https://stackoverflow.com/questions/4250364/how-to-trim-a-file-extension-from-a-string-in-javascript |
.[^/.]+$
6//?r=⭐ &d=2024/7/7 18:27:35 &b=lybetb6n
jquery - How do i replace all dot in string to Underscore? - Stack Overflow
https://stackoverflow.com/questions/27721209/how-do-i-replace-all-dot-in-string-to-underscore |
edited Dec 31, 2014 at 12:39
const urlFile = ‘https://6cc.github.io/3/craigErskine.css’;
6//?r=⭐ &d=2024/7/10 10:59:40 &b=lyf94u6q
易经六十四卦符号 (Unicode区段) - 维基百科,自由的百科全书
https://zh.wikipedia.org/wiki/%E6%98%93%E7%B6%93%E5%85%AD%E5%8D%81%E5%9B%9B%E5%8D%A6%E7%AC%A6%E8%99%9F_(Unicode%E5%8D%80%E6%AE%B5)
|
两仪:U+268A..U+268B(⚊ ⚋)
四象:U+268C..U+268F(⚌ ⚍ ⚎ ⚏)
八卦:U+2630..U+2637(☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷)
0 1 2 3 4 5 6 7 8 9 A B C D E F
U+4DCx ䷀ ䷁ ䷂ ䷃ ䷄ ䷅ ䷆ ䷇ ䷈ ䷉ ䷊ ䷋ ䷌ ䷍ ䷎ ䷏
U+4DDx ䷐ ䷑ ䷒ ䷓ ䷔ ䷕ ䷖ ䷗ ䷘ ䷙ ䷚ ䷛ ䷜ ䷝ ䷞ ䷟
U+4DEx ䷠ ䷡ ䷢ ䷣ ䷤ ䷥ ䷦ ䷧ ䷨ ䷩ ䷪ ䷫ ䷬ ䷭ ䷮ ䷯
U+4DFx ䷰ ䷱ ䷲ ䷳ ䷴ ䷵ ䷶ ䷷ ䷸ ䷹ ䷺ ䷻ ䷼ ䷽ ䷾ ䷿
6//?r=⭐ &d=2024/7/11 11:52:34 &b=lygqgpxg
Array.prototype.reduceRight() - JavaScript | MDN
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight | const array1 = ‘000101’;
const result = […array1].reduceRight((accumulator, currentValue) ⇒ accumulator.concat(currentValue), );
console.log(result);
6//?r=⭐ &d=2024/7/11 11:01:05 &b=lygomifj
javascript - How do you reverse a string in-place? - Stack Overflow
https://stackoverflow.com/questions/958908/how-do-you-reverse-a-string-in-place?page=2&tab=scoredesc#tab-top | function reverse(s){ return s.split("").reverse().join(""); } 2009
Implementation 11 2014
const reverse = str ⇒ Array.from(str).reverse().join(”); 2016
var str = […‘racecar’].reverse().join(”); 2015
const reverseString = str ⇒ […str].reverse().join(”); console.log(reverseString(‘ABC’)); 2020
forEach 2018
function reverseString(str) { return str === ” ? ” : reverseString(str.slice(1)) + str[0]; } 2015
[…str].reverse() 2018
String.prototype.reverse = function() { return this.split("").reverse().join(""); } var s = “ABCD”; s = s.reverse(); console.log(s); 2021
var str = ‘sample string’; [].map.call(str, function(x) { return x; }).reverse().join(”); 2015
const reverse = s ⇒ [].reduceRight.call(s, (a, b) ⇒ a + b) console.log(reverse(‘foo’)) // ⇒ ‘oof’ 2015
[…str].reverse() 2021
a.unshift(a.splice(1+i,1).shift()) 2011
var reverseStr = function(str) { return (str.length > 0) ? str[str.length - 1] + reverseStr(str.substr(0, str.length - 1)) : ”; }; 2014
//tests console.log(reverseStr(‘setab retsam’)); //master bates 2014
reverseLetters() reverseWords() 2009
.reduce((rev, currentChar) ⇒ currentChar + rev, ”); } console.log(reverse(‘apple’)); 2021
.map 2021
word.split(”).reduce((acc, curr) ⇒ curr+""+acc) 2019
6//?r=⭐ &d=2024/7/14 16:54:31 &b=lylbkl8i
javascript - get image attribute inside element of same class - Stack Overflow
https://stackoverflow.com/questions/25125690/get-image-attribute-inside-element-of-same-class | map for(var i in images) { each find
6//?r=⭐ &d=2024/7/14 18:33:07 &b=lylf3e48
javascript - How to recursively search all parentNodes - Stack Overflow
https://stackoverflow.com/questions/7332179/how-to-recursively-search-all-parentnodes | function parents(element, _array) {
6//?r=⭐ &d=2024/7/14 18:32:46 &b=lylf2xl0
Element.closest() - Web API | MDN
https://developer.mozilla.org/zh-CN/docs/Web/API/Element/closest |
Element.closest()
const images = document.querySelectorAll(‘div.wrapper-box div div div div.text article.article p img’);
const number = parents(hoverElem); let num = ”;
for (let i = number.length - 2; i > -1; i—) { const spaceInClass = /\s/.test(number[i].className); const noClassName = number[i].className === ”; const classNameOrig = spaceInClass || noClassName ? ” : ’.’ + number[i].className; num += number[i].localName + classNameOrig + ’ ’; } const images = document.querySelectorAll(num + ‘img’); console.log(images);
div.wrapper-box div div div div.text article.article p
6//?r=⭐ &d=2024/7/14 20:06:00 &b=lylieu8n
javascript - How to find parent on recursive array - Stack Overflow
https://stackoverflow.com/questions/69824540/how-to-find-parent-on-recursive-array | if (items.find(item ⇒ item.uuid === id)) return { uuid: parent?.uuid, type: parent?.type, title: parent?.title };
6//?r=⭐ &d=2024/7/16 11:18:34 &b=lynug9fo
Key.js \ JavaScript keyboard event key codes & key identifiers
Press any key to get the JavaScript keydown event key, code, which and keyCode properties:
6//?r=⭐ &d=2024/7/16 11:21:14 &b=lynujoyh
JS 键盘按键keyCode对应表
https://ghjayce.github.io/p/language/javascript/key-code/#%E6%8E%A7%E5%88%B6%E9%94%AE |
JS 键盘按键keyCode对应表
6//?r=⭐ &d=2024/7/16 11:23:33 &b=lynumnxq
使用JavaScript手写一个简单的快捷键库 - 前端直通车 - SegmentFault 思否
https://segmentfault.com/a/1190000044663739 | ’”’: ”’”, ’|’: ’\’,
6//?r=⭐ &d=2024/7/18 14:51:58 &b=lyqwydx5
PNG to Base64 | Image | Base64 Encode | Base64 Converter | Base64
https://base64.guru/converter/encode/image/png |
PNG to Base64
6//?r=⭐ &d=2024/7/18 14:56:17 &b=lyqx3ya5
Download files from <a href=“data:application/octet-stream;base64,**” style · Issue #2255 · nwjs/nw.js
https://github.com/nwjs/nw.js/issues/2255 | Basically you use this. https://github.com/eligrey/FileSaver.js/
Then generate blob data from base64 string. http://stackoverflow.com/questions/16245767/creating-a-blob-from-a-base64-string-in-javascript
data:application/json;base64
6//?r=⭐ &d=2024/7/22 14:10:39 &b=lywl8nuz
Map - JavaScript | MDN
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Map |
6//?r=⭐⭐ &d=2024/7/19 10:38:34 &b=lys3cdg0
箭头函数表达式 - JavaScript | MDN
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions | const materials = [‘Hydrogen’, ‘Helium’, ‘Lithium’, ‘Beryllium’];
console.log(materials.map((material) ⇒ material.length)); // Expected output: Array [8, 6, 7, 9]
6//?r=⭐ &d=2024/7/19 11:08:51 &b=lys4fb7f
javascript - How do I get a simple stacktrace js example working? - Stack Overflow
https://stackoverflow.com/questions/34001666/how-do-i-get-a-simple-stacktrace-js-example-working |
console.log( StackTrace.getSync() );
6//?r=⭐ &d=2024/7/19 13:14:44 &b=lys8x79d
解决stackoverflow打开缓慢和样式错乱。_cnds的stackover-CSDN博客
https://blog.csdn.net/u013411478/article/details/21953239 | 最近开StackOverflow很慢,而且刷出来多半没样式。猜测是CSS被墙了,用Chrome Network一看果然如此。
fetch(‘https://proxy.cors.sh/https://acme.com’, { headers: { ‘x-cors-api-key’: ‘temp_e66b93e119d652d78715a7b55aeb1052’ } })
6//?r=⭐ &d=2024/7/29 17:56:19 &b=lz6tdtxv
Chinese Text Project API
https://ctext.org/plugins/apilist/zh/#readlink | analects readlink
https://api.ctext.org/readlink?if=zh&url=https://ctext.org/book-of-changes/zhun/zh https://api.ctext.org/gettext?if=zh&urn=ctp:book-of-changes/zhun
https://ctext.org/wordcloud/book-of-changes.png
───✱*.。:。✱*.:。✧*.。✰*.:。✧*.。:。*.。✱ ───