sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| $.ajaxSetup({ | |
| aysnc: false, // 默认同步加载 | |
| type: "GET", // 默认使用POST方式 | |
| showLoading: false, | |
| debug: true, | |
| headers: { // 默认添加请求头 | |
| "authorization": "Bearer {php echo $_W['haitun_token']}", | |
| }, | |
| error: function (jqXHR, textStatus, errorMsg) { // 出错时默认的处理函数 | |
| $.alert(jqXHR.responseJSON.error); |