PHP和JS跳转

WBOY
WBOYOriginal
2016-06-23 14:32:591364browse

在PHP中可以利用

header('Location: taget.html');

?>

在JS中则用

document.location="target.html";

当然.也可以在PHP中调用JS语句

记得利用转义符就好了~.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:RHEL 5 安装PHPNext article:10 Principles of the PHP Masters