Deprecated: Typecho\Widget\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Request.php on line 219

Deprecated: Typecho\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Request.php on line 349

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $suffix as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158
分类 php 下的文章 - 开发者

分类 php 下的文章

这篇文章主要介绍了php获取当前url地址的方法,结合实例形式JS获取URL的方法对比分析了php获取URL的常用技巧,需要的朋友可以参考下

js 获取:

top.location.href  //顶级窗口的地址
this.location.href //当前窗口的地址

- 阅读剩余部分 -

相信每个 JavaScript 开发者 都使用过 console.log("msg")。
除此之外,你还使用过哪些?

1. log() | info() | debug() | warn() | error
上面展示的五个方法,都是打印信息,你可以传一个或者多个参数。

console.log("log");
console.info("info");
console.debug("debug");
console.warn("warn");
console.error("error");

- 阅读剩余部分 -