Home  >  Article  >  Backend Development  >  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?

WBOY
WBOYOriginal
2016-08-20 09:04:14859browse

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>

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

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