09 2018 档案
摘要:header("Access-Control-Allow-Origin: http://a.com"); // 允许a.com发起的跨域请求 //如果需要设置允许所有域名发起的跨域请求,可以使用通配符 * header("Access-Control-Allow-Origin: *"); // 允许任意域名发起的跨域请求
阅读全文
摘要:1.php判断系统函数或自己写的函数是否存在 bool function_exists ( string $function_name ) 判断函数是否已经定义,例如: 2.php判断类是否存在 bool class_exists ( string $class_name [, bool $auto
阅读全文
摘要:实现的效果是xxx.com访问时跳转到www.xxx.com
阅读全文