无法发送参数阿贾克斯ExtJS的 [英] Can't Send Parameter Ajax in ExtJs
本文介绍了无法发送参数阿贾克斯ExtJS的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有code。在查看ExtJS的。这里的code:
I have code in View Extjs. Here's the code:
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:
I call it in newoss_get_paket.php:
$pstn = $_POST['nopstn'];
$number= $_POST['num'];
但结果是空..参数不能发送到PHP文件。对我有什么解决办法吗?
But the result is null.. parameters can't sent to php file. any solution for me?
推荐答案
使用的 extraParams配置代替 PARAMS
。有一个代理无 PARAMS
配置。
Use the extraParams config instead of params
. There is no params
config on a proxy.
这篇关于无法发送参数阿贾克斯ExtJS的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文