+ -
当前位置:首页 → 问答吧 → jquery ajax读不到数据

jquery ajax读不到数据

时间:2009-05-21

来源:互联网

                $.ajax(
                    {
                        type:"POST",
                        url:that.url_str,
                        data:that.str,
                        success:function(html)
                            {
                                $('#'+that.div_id).html(html);
                                document.getElementById("newDrag").style.display="block";
                                document.getElementById(that.div_id).style.display='block';
                                that.func_name(that.paratmeter);
                                that.func_name_other(that.parameter_other);
                            }
出现有些时候读不到数据情况 调用不出来 这是为什么啊?

作者: fudg1211   发布时间: 2009-05-21

要怎么解决啊

作者: fudg1211   发布时间: 2009-05-21

dataType设为"html"

此外可以考虑用load函数

作者: keakon   发布时间: 2009-05-21

相关阅读 更多