ZigZagK's Wiki

一些PHP奇技淫巧

判断PJAX请求

if ($_SERVER['HTTP_X_PJAX']=='true') {}

判断POST请求

if ($_SERVER['REQUEST_METHOD']=='POST') {}
Copyright © 2020 ZigZagK