小编Ema*_*cur的帖子

jQuery ajax请求,承诺不在IE9中工作

这是我制作的一个使用YQL进行Google翻译的课程.

var Translator = {
    source: 'ro', // default
    target: 'en', // default
    url: 'http://query.yahooapis.com/v1/public/yql?q=select * from google.translate where q="',
    urlRemaining: '";&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback=',
    diacritics: Array(),
    newCharacters: Array(),

    replaceAll: function( string, replace, replaceWith ) {
        return string.replace( new RegExp( replace, 'g' ), replaceWith );
    },

    replaceDiacritics: function( text ) {
        string = text;

        // diacritics and newCharacters should be arrays of the same length
        // diacritics should only be specified in lowercase - uppercased version will be assumed
        // durring the process …
Run Code Online (Sandbox Code Playgroud)

javascript ajax jquery promise internet-explorer-9

7
推荐指数
1
解决办法
1280
查看次数

标签 统计

ajax ×1

internet-explorer-9 ×1

javascript ×1

jquery ×1

promise ×1