金山词霸api怎么用ajax调用
$.ajax({
type: "post",
url: "http://dict-co.iciba.com/api/dictionary.php?type=json&key=xxx&w=go",
dataType: 'json',
success: function (result) {
alert(result.word_name);
},
error: function (e) { alert("dd")},
async: true,
cache: false
});
这样会直接跳到error 好像返回的json数据不对,如果返回xml的话,汉译英好像也不对,除了这个还有其他好用的api吗?要求有语音的