1.用户登录状态操作类UserLogin <?php final class UserLogin { public function __construct() { } public static function getUserInfo() { if (isset($_COOKIE["user_id"])&&$_COOKIE["user_id"]&&(trim($_COOKIE["user_id"])!=&
复制代码 代码如下: /检查非法字符并检验字符长度 function checkSpeChar(obj, byteLength, title) { var value = document.getElementById(obj).value; value = value.replace(/(^\s*)/g, "").replace(/(\s*$)/g, ""); var ret = (/[-|;|,|\/|\(|\)|\[|\]|\}|\{|%|@|\*|!|\']