摘要:
一、實現頁面全屏 1 function doFullscreen (el) { 2 if (el == null) { 3 el = document.documentElement 4 } 5 const func = el.requestFullscreen || el.requestFullS
閱讀全文
posted @ 2023-10-13 15:47
小老虎網絡
閱讀(117)
推薦(0)
摘要:
一、現象 1、光標聚集輸入框時需要獲取原始值 2、在輸入框進行數據調整 3、輸入失去焦點時進行輸入前后的數據進行對比處理,得出相差的值 4、按回車(enter)鍵或是鼠標作用光標失去焦點時進行數據處理 5、輸入框綁定了獲得、失去光標和回車事件, 如下(element-ui組件): <el-input
閱讀全文
posted @ 2023-08-31 19:48
小老虎網絡
閱讀(697)
推薦(0)
摘要:
一、現象 在真機中,當光標作用信息發送框喚起軟鍵盤時,鍵盤會把輸入框蓋住一大半。如圖: 喚起前: 喚起后: 二、解決 1、輸入框設置adjust-position=“false”屬性(adjust-position為表單組件鍵盤彈起時,是否自動上推頁面) 2、當輸入框獲得焦點時,獲取軟鍵盤的高度 3
閱讀全文
posted @ 2023-05-05 17:28
小老虎網絡
閱讀(1389)
推薦(0)
摘要:
一、現象 根據《小程序用戶頭像昵稱獲取規則調整公告》 自 2022 年 10 月 25 日 24 時后(以下統稱 “生效期” ), 用戶頭像昵稱獲取規則將進行調整 : 通過 wx.getUserInfo 接口獲取用戶頭像將統一返回默認灰色頭像,昵稱將統一返回 “微信用戶” 官方鏈接: https:/
閱讀全文
posted @ 2023-05-05 16:16
小老虎網絡
閱讀(1423)
推薦(0)
摘要:
樹 一、 let dataInfo = res.data || [] let setTree = [] dataInfo.forEach(item => { if (item.level 1 || item.level 2) { const parent = dataInfo.find((node)
閱讀全文
posted @ 2023-04-11 10:56
小老虎網絡
閱讀(18)
推薦(0)
摘要:
一、問題現象: uni-app 開發小程序 微信開發工具 報: Error: xxx.js 已被代碼依賴分析忽略,無法被其他模塊引用。你可根據控制臺中的【代碼依賴分析】告警信息修改代碼,或關閉【過濾無依賴文件】功能。 二、解決方法: 步驟: (1)、在manifest.json 中打開“源碼視圖”,
閱讀全文
posted @ 2023-03-10 12:03
小老虎網絡
閱讀(8534)
推薦(0)
摘要:
一、下載Nginx版本 1、命令窗口進入服務,在系統根目錄(進入命令:cd /)下新建目錄 mkdir nginx (后期安裝完后再干掉它 ,進入系統根目錄 執行 rm -fr nginx) 2、官網:http://nginx.org/ 按需下載相應的版本,如: 執行下載: wget http://
閱讀全文
posted @ 2022-02-08 16:39
小老虎網絡
閱讀(4065)
推薦(1)
摘要:
一、現象 Python3鏈接數據庫報錯:Connection.__init__() takes 1 positional argument but 5 positional arguments (and 1 keyword-only argument) were given 二、解決 把以下紅色位置
閱讀全文
posted @ 2021-12-15 17:14
小老虎網絡
閱讀(3667)
推薦(0)
摘要:
一、下載Mysql 官方鏈接: https://dev.mysql.com/downloads/mysql TIPS::根據自己的系統下載對應的版本即可 二、當安裝完Mysql后,如果在終端中輸入 mysql 如果出現“-bash: mysql: command not found”即為沒有配置環境
閱讀全文
posted @ 2021-12-15 15:19
小老虎網絡
閱讀(162)
推薦(0)
摘要:
一、現象 終端運行:pip install MySQLdb 報: ERROR: Could not find a version that satisfies the requirement MySQLdb (from versions: none) ERROR: No matching distr
閱讀全文
posted @ 2021-12-15 15:13
小老虎網絡
閱讀(4056)
推薦(0)