(function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i+"?ref=bwt"; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", "script", "btkbh92jgl");
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");ym(93103491, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
跳至主要內容 19 9 月, 2023
zyrastory 嫌JavaScript中的foreach太過麻煩,想要一行程式碼執行完迭代嗎? 那可以試試reduce吧,不僅提供了初始值的設定,還預設回傳單一值了~
19 9 月, 2023
18 9 月, 2023
zyrastory 網頁使用JQuery呼叫AJAX之後,怎麼後面的程式碼偷跑了!?
18 9 月, 2023
17 9 月, 2023
zyrastory 網路上很多寫 批次 bat檔的範例第一句都是@echo off,那你知道這行指令做了什麼嗎? 那有@echo on嗎?
17 9 月, 2023
15 9 月, 2023
zyrastory 同構,簡單來說就是字元之間的對應。要判斷兩個字串中是否同構,就要進行一個簡單的對應去確認!
15 9 月, 2023
13 9 月, 2023
zyrastory JQuery的 .on(‘click’) 為什麼遇上動態產生的物件就失效了!? 原因及該怎麼解決
13 9 月, 2023
12 9 月, 2023
zyrastory HTML5 中較少被人知道的Figure元素,簡單介紹、範例以及其優點
12 9 月, 2023
10 9 月, 2023
zyrastory 看起來是一題可以靠著簡單的for迴圈完成的題目,那又有甚麼要特別注意的嗎?
10 9 月, 2023
6 9 月, 2023
zyrastory 這一題,我們必須確認是否每個英文字母都跟其中一個單字是一對一的關係
6 9 月, 2023
5 9 月, 2023
zyrastory 希望另一半或是朋友玩遊戲到一半時自動關機嗎? 不管是惡搞還是其他需要,你/妳都需要看這一篇,全程附圖片講解,不需要任何程式背景!!!
5 9 月, 2023
4 9 月, 2023
zyrastory 用CMD也可以幫電腦關機? 有哪些參數可以使用,以及有甚麼用呢?
4 9 月, 2023
3 9 月, 2023
zyrastory cmd列出所有可用的python版本以及怎麼切換默認的版本
3 9 月, 2023
1 9 月, 2023
zyrastory Div 除了方形外,居然也能變成圓的!? 該怎麼針對邊角設定弧度跟怎麼使用呢?
1 9 月, 2023
30 8 月, 2023
zyrastory 掃描時常見的問題,主要就是未經驗證的輸入類資料被寫入LOG,可能會造成誤判…等結果,本文包含了該怎麼解決以及範例
30 8 月, 2023
29 8 月, 2023
zyrastory 是否在撰寫HTML頁面時,常常需要限定檔案的類型,那這時候我們該怎麼處理? 手把手的教學,提供程式碼及即時畫面
29 8 月, 2023
28 8 月, 2023
zyrastory PIL是Python中一個處理圖片的套件,不過筆者在使用時卻發生圖片方向轉向的問題… 這篇文章說明了問題的原因以及如何處理
28 8 月, 2023
26 8 月, 2023
zyrastory 忠孝敦化站一號出口一上來就會看到的台式小酒館,儘管店名是以餃子取名,但店內厲害的可不只它而已!
26 8 月, 2023
25 8 月, 2023
zyrastory 自動完成怎麼也會影發風險問題? 究竟是為什麼以及該怎麼處理呢
25 8 月, 2023
24 8 月, 2023
23 8 月, 2023
zyrastory 為什麼String容易導致敏感資料洩漏的問題以及該怎麼處理
23 8 月, 2023
22 8 月, 2023
zyrastory 源碼掃描遇上了 Insecure Randomness該怎麼辦? 探討 PRNG、TRNG之間的差異以及該如何進行修正
22 8 月, 2023
21 8 月, 2023
zyrastory shift 以及它的快樂夥伴 – unshift,可以針對陣列的第一個元素進行操作
21 8 月, 2023
15 8 月, 2023
zyrastory 相信大家都對這個屬性陌生又熟悉,熟悉的是display:none,陌生的則是…block、inline、inline-block的差異究竟是什麼
15 8 月, 2023
14 8 月, 2023
zyrastory 反轉整個鏈結串列,如何在使用較少額外空間下達成這個目標
14 8 月, 2023
13 8 月, 2023
zyrastory 遍歷一顆二元樹通常有三種方法,差異在於順序。這一次講到的就是其中的中序遍歷。
13 8 月, 2023
12 8 月, 2023
10 8 月, 2023
9 8 月, 2023
zyrastory 千辛萬苦建立好了一個Canvas,想要分享給別人卻不知道該怎麼辦嗎? 那來試試內建的 toDataURL() 吧!
9 8 月, 2023
7 8 月, 2023
zyrastory CMD底下的CD指令介紹 – 預設開啟位置、基本用法、切換不同磁碟槽
7 8 月, 2023
5 8 月, 2023
zyrastory 總是對前端排版感到相當棘手嗎,那要不要來試試看這個免費的線上功能。提供了不少可以自訂義的選項供操作 (支援HTML、CSS、JS)
5 8 月, 2023
4 8 月, 2023
zyrastory 常常對HTML裡的class修改感到很棘手嗎? 那何不試試看classList以及他的function夥伴們,成為元素魔法使還不是輕輕鬆鬆!
4 8 月, 2023
function closePop(){document.getElementById("headlineatas").style.display = 'none';}
function openPop()
{
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent))
{
return false;
}
var r = Math.random();
if(r>0.7 || r<0.3)
{
document.getElementById("headlineatas").style.display = '';
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({});
function returnDefault(item)
{
item.innerText = "Copy"
item.style.color = "white"
item.style.backgroundColor = "CornflowerBlue";
}
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) == false) //20221128 手機用戶移除copy功能
{
jQuery('code').each(function () {
var btn = document.createElement("button");
btn.innerHTML = "Copy";
btn.onmousedown = "event.preventDefault();";
btn.setAttribute('class', 'btnC');
btn.onclick = function(){
var k = this.nextSibling;
var textArea = document.createElement("textarea");
textArea.style.position = 'fixed';
textArea.style.top = 0;
textArea.style.left = 0;
textArea.style.width = '2em';
textArea.style.height = '2em';// We don't need padding, reducing the size if it does flash render.
textArea.style.padding = 0;// Clean up any borders.
textArea.style.border = 'none';
textArea.style.outline = 'none';
textArea.style.boxShadow = 'none';// Avoid flash of the white box if rendered for any reason.
textArea.style.background = 'transparent';textArea.value = k.textContent;document.body.appendChild(textArea);
textArea.focus();
textArea.select();var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful';if(successful)
{
this.focus();
this.style.backgroundColor = "green";
this.innerText = "✔Copied"
openPop();
setTimeout(( ()=>returnDefault(this)),1850)
}document.body.removeChild(textArea);
};var parent = this.parentNode;
parent.insertBefore(btn, this);
});
}
var uagb_timeline_data = {"tablet_breakpoint":"976","mobile_breakpoint":"767"};
https://zyrastory.com/wp-content/plugins/ultimate-addons-for-gutenberg/assets/js/timeline.min.js
https://zyrastory.com/wp-content/uploads/uag-plugin/assets/0/uag-js-197-1694624959.js
https://zyrastory.com/wp-content/plugins/highlighting-code-block/assets/js/prism.js
var hcbVars = {"showCopyBtn":"","copyBtnLabel":"Copy code to clipboard"};
https://zyrastory.com/wp-content/plugins/highlighting-code-block/build/js/hcb_script.js
var ct_localizations = {"ajax_url":"https:\/\/zyrastory.com\/wp-admin\/admin-ajax.php","nonce":"00ac813cc8","public_url":"https:\/\/zyrastory.com\/wp-content\/themes\/blocksy\/static\/bundle\/","rest_url":"https:\/\/zyrastory.com\/wp-json\/","search_url":"https:\/\/zyrastory.com\/search\/QUERY_STRING\/","show_more_text":"\u986f\u793a\u66f4\u591a","more_text":"\u66f4\u591a","search_live_results":"\u641c\u5c0b\u7d50\u679c","search_live_no_result":"\u627e\u4e0d\u5230\u7b26\u5408\u7684","search_live_one_result":"\u60a8\u5df1\u627e\u5230 %s \u500b\u7b26\u5408\u7684. \u8acb\u6309 Tab \u9375\u4f86\u9078\u64c7\u5b83.","search_live_many_results":"\u60a8\u5df1\u627e\u5230 %s \u500b\u7b26\u5408\u7684. \u8acb\u6309 Tab \u9375\u4f86\u9078\u64c7\u5b83.","expand_submenu":"\u5c55\u958b\u4e0b\u62c9\u9078\u55ae","collapse_submenu":"\u6536\u5408\u4e0b\u62c9\u9078\u55ae","dynamic_js_chunks":[],"dynamic_styles":{"lazy_load":"https:\/\/zyrastory.com\/wp-content\/themes\/blocksy\/static\/bundle\/non-critical-styles.min.css","search_lazy":"https:\/\/zyrastory.com\/wp-content\/themes\/blocksy\/static\/bundle\/non-critical-search-styles.min.css"},"dynamic_styles_selectors":[],"lang":"zh"};
https://zyrastory.com/wp-content/themes/blocksy/static/bundle/main.js
(function() {
var expirationDate = new Date();
expirationDate.setTime( expirationDate.getTime() + 31536000 * 1000 );
document.cookie = "pll_language=zh; expires=" + expirationDate.toUTCString() + "; path=/; secure; SameSite=Lax";
}());
ai_front = {"insertion_before":"BEFORE","insertion_after":"AFTER","insertion_prepend":"PREPEND CONTENT","insertion_append":"APPEND CONTENT","insertion_replace_content":"REPLACE CONTENT","insertion_replace_element":"REPLACE ELEMENT","visible":"VISIBLE","hidden":"HIDDEN","fallback":"FALLBACK","automatically_placed":"Automatically placed by AdSense Auto ads code","cancel":"Cancel","use":"Use","add":"Add","parent":"Parent","cancel_element_selection":"Cancel element selection","select_parent_element":"Select parent element","css_selector":"CSS selector","use_current_selector":"Use current selector","element":"ELEMENT","path":"PATH","selector":"SELECTOR"};