1、假如你有一張銀行卡號碼為 1111 2222 3333 4444 這樣的卡號,當然這樣的號碼我從沒見過,因為持有改卡的的人應該還沒有出生....
上程式碼:--------------->>>>>>>>>>>>>>>>>>>>>>>>>>
let val ="1111222233334444"
val = val.replace(/\s/g,'').replace(/(.{4})/g,"$1 ")
寫一條一行的4為數字,每隔4個數字空一格 xxxx xxxx xxxx xxx就是xxxx這樣的格式
相關文章
- 報錯xxxx of undefinedUndefined
- 使用者名稱的格式xxxx......@xxxxs
- Linux awk 中 xxxx的應用Linux
- “Host ‘xxxx‘ is not allowed to connect to this MySQL server“MySqlServer
- springboot報錯無法讀取配置檔案中的屬性:Could not resolve placeholder ‘xxxx‘ in value “${xxxx}Spring Boot
- 使用req.session.xxx時出現 Cannot set property ‘xxxx‘ of undefinedSessionUndefined
- [20211020]XXXX_DGB服務名.txt
- PostgreSQL cache lookup failed for type XXXX 錯誤SQLAI
- IDEA Error:java xxxx 程式包不存在IdeaErrorJava
- could not autowire. No beans of 'xxxx' 問題解決Bean
- eclipse :報錯 ‘XXXX‘ does not name a type的解決辦法Eclipse
- Git:warning: CALF wilL be replaced by LF in xxxx 問題解決Git
- PostgreSQLPostGISpointjoinpolygon(byST_xxxx)-pglz_decompress效能優化SQLGo優化
- 【Oracle】ORA-23421: job number XXXX is not a job in the job queueOracle
- 使用@Service註解出現No bean named 'xxxx' available]錯誤BeanAI
- tomcat-啟動報錯Multiple Contexts have a path of "/xxxx"TomcatContext
- Vue init webpack xxxx project 報錯處理(connect ETIMEDOUT 192.30.253.112)VueWebProject
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- Unknown host ‘XXXX: nodename nor servname provided, or not known‘. You may need to adjust the proxyIDE
- 開發中遇到的bug-Property or method “xxxx“ is not defined on the instance but referenced during render.
- 程式碼改造引發的NoSuchBeanDefinitionException:no bean named 'XXXX' available問題解決方案BeanExceptionAI
- 寫一個函式,輸入一個4位數字,要求輸出這4個數字字元函式字元
- 如何處理SAP CRM Web Service錯誤 - Virtual Interface Method XXXX not supportedWeb
- flutter和Android混編下出現“No implementation found for method xxxx on channel”錯誤FlutterAndroid
- pod install 和 rvm install ruby-xxxx報錯解決辦法
- wget 提示 "無法驗證 xxxx.xxx 的由 “xxx” 頒發的證書: 無法本地校驗頒發者的許可權。"wget
- Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解決的兩種方式)Go
- idea啟用後提示We could not validate your license xxxx解決辦法Idea
- golang 執行系統命令 ps aux | grep "xxxx",總是異常退出GolangUX
- 錯誤 CS0006 Metadata file 'E:\專案名稱\xxxx.dll'
- Python3.7使用pip install xxxx報錯:UnicodeDecodeError: 'gbk' codec can't decode bytePythonUnicodeError
- uni-app的分包下小程式報錯app.json: [“tabBar“][1][“pagePath“]: “xxxx“ need in [“pages“]APPJSONtabBar
- Centos7系統建立使用者時出現“useradd: user ‘xxxx‘ already exists”錯誤CentOS
- 使用Laravel框架,怎麼通過訪問/xxxx/ooo.php也通過路由來使用Laravel框架PHP路由
- JavaScript數字每隔三位加一個逗號JavaScript
- wsl docker 安裝frp內網穿透出現error: dial tcp 127.0.0.1:xxxx: connect: connection refused解決方法DockerFRP內網穿透ErrorTCP127.0.0.1
- JS中的數字格式化和大位數縮寫JS
- 讀懂這4條建議,輕鬆實現數字化轉型