原创 Gitbook使用入門

安裝Node GitBook 基於 Node.js ,先裝個 Node.js。 檢測是否安裝成功: $ node -v v10.12.0 Gitbook 安裝 $ npm install -g gitbook-cli 檢測安裝是否

原创 mysql常用操作

新增用戶 insert into mysql.user(Host,User,authentication_string) values("localhost","test",password("123")); 修改用戶密碼 upda

原创 django爲什麼線上部署的時候要用到 uwsgi 和 nginx

首先你要明確幾個概念及其作用(注意大小寫的區別): WSGI uWSGI uwsgi Nginx WSGI 是一種協議,不是任何包不是任何服務器,就和 TCP 協議一樣。它定義了 Web 服務器和 Web 應用程序之前如何通信的規

原创 input比onchange實時性更高的監聽事件

<input id="input1"> <input id="input2"> <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.js"></script> <scri

原创 這是什麼東西

以下所有內容replace(“=”, “”)後使用 yum install epel-release yum install python-pip yum install python-setuptools m2crypto supe

原创 一些廉價服務器

https://billing.virmach.com/cart.php https://www.vultr.com/ https://www.budgetvm.com/

原创 gitignore文件不生效

git rm -r --cached . git add . git commit -m 'update .gitignore'

原创 python用子字典覆蓋主字典

字典結構相同,子字典中自定義了一些value,要求覆蓋主字典的value import json all_dict = { "consts": { "fntMap": { "hall_bu

原创 解決ajax回調window.open瀏覽器阻止彈窗問題

var new_window = window.open(""); $.ajax({ url:"/xxx/", type: 'POST', data: data, success: function (ob