【问题标题】:Can't Send Parameter Ajax in ExtJs无法在 ExtJs 中发送参数 Ajax
【发布时间】:2015-01-26 06:33:50
【问题描述】:

我在 View Extjs 中有代码。代码如下:

var storeTree = Ext.create('Ext.data.TreeStore', {
            proxy: {
                type: 'ajax',
                method: 'POST',
                url: 'data/newoss_get_paket.php',
                params: { nopstn:"02318330549",
                        num:"tester"
                }
            }
        });

我在 newoss_get_paket.php 中调用它:

$pstn = $_POST['nopstn']; 
$number= $_POST['num']; 

但结果为空.. 参数无法发送到 php 文件。有什么解决办法吗?

【问题讨论】:

  • 作者:{类型:'json'}

标签: php ajax extjs parameters


【解决方案1】:

使用extraParams config 代替params。代理上没有params 配置。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-29
    • 1970-01-01
    • 1970-01-01
    • 2012-12-25
    • 2019-07-17
    • 2018-07-18
    相关资源
    最近更新 更多