traditional() vs arrow()

分析 traditional() 方 理解 this 綁定 等價於: javascript複製編輯console.log(scopeOf.traditional()); // 相當於 scopeOf.traditional.call(scopeOf); 因此: javascript複製編輯this === scopeOf; // ✅ this 綁定到 scopeOf this.scope === “defining scope”; // ✅ 回傳 “defining scope” 分析 …

Node.js

Node.js is a JavaScript runtime environment. First, Install the Node.js in your computer system. Windows: Linux: use nvm to manage the different node version The default package manager for Node.js …

產生https所需要Key.pem與Cert.pem檔案

openssl genpkey -algorithm RSA -out private.pem openssl req -new -key private.pem -out mydomain.csr openssl x509 -req -days 365 -in mydomain.csr -signkey private.pem -out certificate.pem 最終得到的private.pem與certificate.pem

基本的Node與NPM使用方式

首先安裝 NVM (Node Version Manager),由它安裝及管理Node的開發環境版本。 使用npm init -y 建立一個node的專案 使用npm install express, request –save安裝此次所使用到的express.js與request Package. 建立server.js文件 修改package.json 使用npm start運行程式server.js 使用postman進行測試

ORingView Version Two

本系統功能為量測O型環的真圓度,採用ISO 12181-2: 2011所定義的方式進行量測。 使用一個接觸式的量測探針來接觸工件的外部輪廓,會得到一個外部輪廓起伏的量測數據圖(圖二),從數據中得到 Rmax 與 Rmin 的兩個數據而求出真圖度 Rmin / Rmax 圖一 圖二 術語說明 工業相機的曝光時間 (Exposure Time) 曝光時間是指工業相機的感光元件(如 CMOS 或 CCD)接收光線的時間長度。這個時間通常以微秒(μs)或毫秒(ms)為單位。曝光時間的調整直接影響進入相機的光量,因此是影響影像亮度和清晰度的重要參數。 曝光時間的調整對影像的影響 使用場景調整建議 影像灰階值的意義 影像的灰階值是指每個像素在灰階影像中的亮度程度,數值範圍通常為 0 至 255(8 位元影像)。 灰階值的意義在於它反映了像素所接收到的光線強度: …

React-Native Mobile App

WSL2 環境  Java 環境 sudo apt install openjdk-17-jdk Windows-based X Server 在Windows主機下查詢IP 修改WSL2中的~/.bashrc內容,增加一行 Android Studio環境 下載位置: https://developer.android.com/studio/?gclid=Cj0KCQiAjJOQBhCkARIsAEKMtO3zEhdK4_I0CEZic3UH4dl-9gVXuHFR9dCl3TOHKjmv3xWLU3UxfhYaApfAEALw_wcB&gclsrc=aw.ds&hl=zh-tw ~/.bashrc 增加下列 執行Android-studio 下載額外的Hardware Profiles 由ARM 改成 x86_64 NPM 環境 click a to …