PHP头条
热点:

请问小弟我的代码中的有关问题ajax+php(CodeIgniter)


请教我的代码中的问题 ajax+php(CodeIgniter)
我用ajax将页面的值传递到后台,但是却无法获取,请教下我这个该怎么写呢?麻烦大牛们了。

我的页面代码为:

    $(function() {
        $("form[name='estimate']").submit(function(e) {
            e.preventDefault();
            var btn = $("form[name='estimate']").find("input[type='submit']"),
                    price = $(this).find(".price");
            btn.button('loading');
            price.html("");
            $.ajax({
                type: "POST",
                url: 'index.php?module=testprice&view=getprice',
                data: $(this).serializeArray(),
                success: function(data) {
                    price.html("

$" + data + " RMB

" + "

");
                    btn.button('reset');
                },
                error: function() {
                    alert("Service Unavailable");
                }
            });
        });
       
《script》    



    
        
            

www.phpzy.comtrue/phprm/8049.htmlTechArticle请问小弟我的代码中的有关问题ajax+php(CodeIgniter) 请教我的代码中的问题 ajax+php(CodeIgniter) 我用ajax将页面的值传递到后台,但是却无法获取,请教下我这个该怎么写呢?麻烦大牛们了。...

相关文章

相关频道:

PHP之友评论

今天推荐