简体   繁体   English

使用jquery代码使用jquery文件调用php

[英]calling php with jquery file using jquery code

Edited: I am trying to follow this pagination tutorial .编辑:我正在尝试按照此分页教程进行操作 I already made it work.我已经让它工作了。 However when I'm trying to load it through calling the php file(pagination), the jquery in the tutorial is not working.但是,当我尝试通过调用 php 文件(分页)加载它时,教程中的 jquery 不起作用。 Do you have any idea why?你知道为什么吗?

<script>
function ajax_loadpage(loadUrl,output_container)
    {
        $.post
        (
            loadUrl,
            {language: "php", version: 5},function(responseText){$(output_container).html(responseText);},"html"
        );
    }

ajax_loadpage("url1.php","#div_wrapper_or_container");
</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM