原创 小程序 顯示3個一排 自動換行

方法1:使用的是width: 31%; <!--3個一排,超過換行--> <view class="link"> <view class="link_child"> 1212 </view> <view class="link_ch

原创 MAC環境 docker 內 安裝SqlServer

1. 拉取 SQL Server 2017 Linux 容器映像 sudo docker pull mcr.microsoft.com/mssql/server:2017-latest   2.使用 Docker 運行容器映像 : <Yo

原创 Django 創建項目和應用

創建項目 django-admin startproject mysite   外層的mysite/:是項目的容器,可以爲任意名字。 manage.py:一種讓你可以使用各種方式管理Django項目的命令行工具。在mysite/目錄下輸

原创 windows安裝Django

Django官方文檔   https://docs.djangoproject.com/en/2.0/   命令行安裝Django : 下載Django  (栗子:Django-2.0) 1. 進入Django目錄 執行 setup.py

原创 查看linux指定端口號使用數量

linux查看端口號使用數量 netstat -pnt | grep :443 | wc -l   linux查看端口號使用 netstat  -anp  | grep  443   linux查看所有使用中端口 netstat   -n

原创 Linux 安裝 Mysql8.0.18

1.下載mysql https://dev.mysql.com/downloads/mysql/   ~] cd /usr/local ~] wget https://dev.mysql.com/get/Downloads/MySQL-

原创 php,js 獲取當前url地址的方法

js 獲取: 1 2 top.location.href  //頂級窗口的地址 this.location.href //當前窗口的地址   php獲取當前url地址: #測試網址:   http://localhost/blog

原创 小程序圖片處理 居中、鋪滿屏幕

<view class='imagesize'> <image src="/images/2.png" class='in-image' > </image> </view>   1.圖片居中(屏幕頂部): //.wxss裏的參數 .im

原创 linux php-redis擴展安裝錯誤 php_json_decode_ex

php 7.4 redis redis-5.0.7 php-redis redis-5.0.0   make test 出現 PHP Warning: PHP Startup: Unable to load dynamic librar

原创 MySql查看數據庫構建 和 表或字段的註釋

/* 查詢數據庫 ‘bubble’構建 */ select table_name,table_type,engine,table_rows,TABLE_COLLATION,VERSION,concat(truncate(data_leng

原创 Laravel Agent識別客戶端信息

使用 composer 安裝: composer require jenssegers/agent 修改 app/config/app.php 添加 ServiceProvider : 'Jenssegers\Agent\AgentS

原创 點擊複製文本到剪貼板 微信小程序

wxml:   <view class="gong-item" bindtap='copyText' data-text="{{contact_wechat}}"> <image class='gong-image' src=".

原创 在微信小程序json對象和字符串的轉換

var cityjson = {"city":["xx","xx"],"user":["xx","xx"]} //轉成json字符串 var citystr = JSON.stringify(cityjson) //轉成json對象

原创 Laravel Console 任務傳值

Laravel Console 任務創建和調度 在$signature的任務明後添加  參數  {type}     添加 type 的默認值   {type=0}  :     protected $signature = 'Synch

原创 微信小程序頁面跳轉和後退頁面

wxml頁面標籤跳轉: <navigator url="/pages/details/details"> ... </navigator> js控制跳轉頁面: wxml::::: <view class='tab-view-i