我想要做的是访问 array_from_php.api_description.{ACTION_VARIABLE}.param
以下脚本有效:
$('select[name="action"]').change(function(){
var action = $(this).val();
var new_form = '';
$.each(array_from_php.api_description.register_mobile.param, function(i, param) {
new_form += '<label for="label">'+param+': </label>';
new_form += '<input type="text" name="'+param+'" value=""><br />';
});
$(".parameters").html(new_form);
});
但是我怎样才能register_mobile
将动作变量更改为即时到达那里?