After calling the $.post method, the page reaches this address. Is it strange?

WBOY
Release: 2016-08-20 09:04:14
Original
916 people have browsed it

After calling the $.post method, the page reaches this address. Is it strange?

After calling the $.post method, the page reaches this address. Is it strange?

Reply content:

After calling the $.post method, the page reaches this address. Is it strange?

After calling the $.post method, the page reaches this address. Is it strange?

You want to use urlencode(), right?

After calling the $.post method, the page reaches this address. Is it strange?

Why does the requested address need json_encode...

And when outputting, it must be enclosed in quotation marks

<code class="javascript">$.post('<?=$_SERVER["REQUEST_URI"]?>', ...);</code>
Copy after login

The default submission event of the form is triggered. After the click event you added is triggered, you need to prevent the form from being submitted by default and return false

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template