https://www.runoob.com/vue3/vue3-tutorial.html
https://www.runoob.com/vue3/vue3-tutorial.html
https://www.runoob.com/vue3/vue3-tutorial.html
https://www.runoob.com/vue3/vue3-tutorial.html
Custom Css and JS Loader
"file:///C:/Users/user/vsc/custom.css"
Enable Custom Css and JS
Reload Custom Css and JS
-------------------------------------------------
/*
.monaco-workbench .part>.content {
font-size: 16px !important;
}
*/
div.explorer-viewlet {
font-size: 14.5px !important;
}
-------------------------------------------------
/* Explorer 檔案列表 */
.monaco-list-row {
font-size: 15px !important;
}
/* Explorer 樹 */
.explorer-viewlet .monaco-list {
font-size: 15px !important;
}
/* 檔名 */
.monaco-icon-label .label-name {
font-size: 15px !important;
}
/* 修改右鍵選單整體的字型大小 */
.monaco-menu .action-label {
font-size: 15px !important; /* 根據需求調整數值 */
}
/* 修改編輯器內右鍵選單的字體大小 */
.monaco-menu .action-item .action-menu-item {
font-size: 15px !important; /* 請依需求調整數值 */
//font-family: "Segoe UI", "Microsoft JhengHei", sans-serif !important;
}
[
{
"key": "alt+oem_2",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+backspace",
"command": "-deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+space",
"command": "-toggleSuggestionDetails",
"when": "suggestWidgetVisible && textInputFocus"
}
]
Windows Registry Editor Version 5.00
; Disable Windows Defender registry
; Generated by RegFiles.net
; https://www.regfiles.net/registry/disable-windows-defender-registry
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DisableAntiVirus"=dword:00000001
"DisableSpecialRunningModes"=dword:00000001
"DisableRoutinelyTakingAction"=dword:00000001
"ServiceKeepAlive"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
"DisableBehaviorMonitoring"=dword:00000001
"DisableOnAccessProtection"=dword:00000001
"DisableRealtimeMonitoring"=dword:00000001
"DisableScanOnRealtimeEnable"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Signature Updates]
"ForceUpdateFromMU"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet]
"DisableBlockAtFirstSeen"=dword:00000001
import os
import sys
dir = os.path.dirname(__file__)
os.path.abspath(...)
rootPath = os.getcwd().replace('\\','/')
package的入口>>
js:
index.js
py:
__init__.py
-------------------------------------------
import 的差異>>
js:
impot {...} from '...'
import XX as XX from '...'
py:
import package as nickName
import dir.package
from package import component
-------------------------------------------
檔案當前路徑>>
py:
os.getcwd()
php:
$_SERVER['PHP_SELF'], __FILE__
-------------------------------------------
專案當前路徑>>
-------------------------------------------
數值類型>>
js:
typeof(...)
py:
type(...)
php:
gettype()
-------------------------------------------
undefined, null>>
js:
... == null
typeof(...) == 'undefined'
py:
... is None
php:
isset(...), empty(...), is_null(...)
-------------------------------------------
'atom-text-editor':
"ctrl-space": "unset!"
'alt-/': 'autocomplete-plus:activate'
'.platform-linux atom-text-editor, .platform-win32 atom-text-editor':
'ctrl-i': 'regex-railroad-diagram:show'
PHP_EOL 換行// 校正命令模式的 dir
chdir(__DIR__);
function is_cli() {
if (php_sapi_name() === 'cli') {
return true;
}
if (defined("STDIN")) {
return true;
}
if (!isset($_SERVER["REMOTE_ADDR"]) || empty($_SERVER["REMOTE_ADDR"])) {
return true;
}
return false;
}
PHP中include和require絕對路徑、相對路徑問題
-Advertisement-
Play Games
在寫PHP程式時,經常要用到include或require包含其他文件,但是各文件里包含的文件多了之後,就會產生路徑問題。 如下目錄: <web>(網站根目錄) ├<A>文件夾 │ │ │ └1.php ├<B>文件夾 │ │ │ └2.php └index.php 現在根目錄下的index.php ...
在寫PHP程式時,經常要用到include或require包含其他文件,但是各文件里包含的文件多了之後,就會產生路徑問題。
如下目錄:
<web>(網站根目錄)
├<A>文件夾
│ │
│ └1.php
├<B>文件夾
│ │
│ └2.php
└index.php
現在根目錄下的index.php要包含A文件夾內的1.php文件,則用include "./A/1.php"即可
而1文件夾內的1.php又包含了B文件夾內的2.php,則1.php內寫上include "../B/2.PHP"即可
可是要知道,當index.php包含了1.php之後,編譯是在index.php里進行的
也就是index.php所包含文件里的include都是相對於index.php的
那麼1.php被包含進index.php里了,那麼就要相對於index.php尋找2.php了
而上面說了,1.php里寫的是include "../B/2.php",現在編譯文件已經相對於網站根目錄了(即相對於index.php)
"../"則意味著還要再返回上一級目錄尋找,那麼怎麼會找得到。
在網上也尋找過一些方法,最好的辦法還是都採用絕對路徑方法較妥。
可以定義一個單入口文件,將要包含的文件包含進來
定義一個常量define("__ROOT__",dirname(__FILE__));,那麼在寫後面的文件過程中,只需要採用絕對方式,加上__ROOT__就行了。
require dirname(__FILE__) . '/library/Zend/Loader.php';