$.ajax({
async: false,
url:’<?php echo base_url(‘abc/demo/sample_foo’); ?>’,
success: function(result){
if(result.responseText == true)
alert(“random text”);
else
alert(“some_other_random_text”);
}
});
デモ コントローラー関数 sample_foo() では、true または false の値のみが返されますが、警告を表示すると「未定義」と表示されます true および false の値を取得するにはどうすればよいですか?