问题
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"
}
}
});
I call it in newoss_get_paket.php:
$pstn = $_POST['nopstn'];
$number= $_POST['num'];
But the result is null.. parameters can't sent to php file. any solution for me?
回答1:
Use the extraParams config instead of params. There is no params config on a proxy.
来源:https://stackoverflow.com/questions/28145642/cant-send-parameter-ajax-in-extjs