原创 打開小程序的入口場景清單

場景值列表 https://developers.weixin.qq.com/miniprogram/dev/reference/scene-list.html    

原创 支付寶小程序下單支付接口:40004 ACQ.INVALID_PARAMETER

下面是支付寶下單接口 https://docs.open.alipay.com/api_1/alipay.trade.create/ 如果按官方文檔的說明,並沒有解釋清楚buyer_id什麼時候要傳,只是說:特殊可選,啥叫特殊可選?!在調小

原创 自定義nginx模塊:引用外部c/c++程序

https://github.com/Taymindis/nginx-link-function Nginx一些其他第三方模塊 https://www.nginx.com/resources/wiki/modules/

原创 HTTP status code 499

HTTP 499 in Nginx means that the client closed the connection before the server answered the request. In my experience i

原创 ab測試時報 apr_socket_recv: Connection timed out (110)

在目標服務器上執行 ulimit -n 999999 其他常規的服務器參數優化參考這 參考 ab發送post數據的方法 # post_loc.txt contains the json you want to post # -p mean

原创 framework7 - a css framework

https://framework7.io/

原创 高德地圖多marker聚合API

主要使用到的對象是 AMap.MarkerClusterer 參考 https://www.cnblogs.com/milkmap/p/3727842.html https://www.jianshu.com/p/ed841991e8e2

原创 安卓 webview 不支持css樣式中有百分號符號?

安卓 webview 不支持css樣式中有百分號符號?看這個例子 <img src="https://www.domain.com/fm/2018-11/images/bc62d8063f87b4f7.jpg" style="width:1

原创 unicode to utf-8

unescape('\u5E7F')

原创 devops 成長路線

https://36kr.com/p/5157249.html

原创 nginx log記錄請求響應時間

2018.10.22 阿里雲對默認nginx log的分析功能詳細介紹。 有時爲了方便分析接口性能等,需要記錄請求的時長,通過修改nginx的日誌格式可以做到,如 添加一個新的log_format log_format  timed_co

原创 chrome開啓touch屏幕點擊事件

在chrome瀏覽器輸入 chrome://flags/#top-chrome-md 找到屬性 UI Layout for the browser's top chrome 選擇Hybrid,重啓chrome,如下圖:

原创 css幾個重要屬性的介紹

1.display-可選值有 none,block,inline,inline-block,flex,grid display用來控制佈局顯示,一般有四種佈局模式,block塊元素,inline行內元素,table二維表,positione

原创 LOADING Redis is loading the dataset in memory

Redis出現錯誤 LOADING Redis is loading the dataset in memory 原因1:redis中dump.rdb文件到達3G時,所有redis的操作都會拋出此異常。解決方法:redis.conf中 m

原创 HTTP code爲200同時 content-length爲0的原因

正常情況下http響應碼爲200時,Content-length肯定不會爲0,除非響應碼是304,即瀏覽器有緩存時,服務器並不會輸出內容體,只是返回狀態碼,瀏覽器直接從自己的緩存取數據。但,萬事都沒有絕對,最近就遇到了響應碼爲200,同時c