博文

目前显示的是 六月, 2014的博文

JavaScript internationalization and localization

The official jQuery Globalization plugin is at https://github.com/jquery/globalize, it's for the globalization of string, date, and number formatting and parsing. Cultures: English, Arabic, Bulgarian, Catalan, Chinese(Simplified), Chinese (Traditional) Legacy, Czech, Danish,  German, Greek, Spanish, Finnish, French, Hebrew, Hungarian, Icelandic, Italian, Japanese, Korean, Dutch, Norwegian, Polish, Portuguese, Romansh, Romanian, Russian, Croatian, Slovak, Albanian, Swedish, Thai, Turkish, Urdu, Indonesian, Ukrainian, Belarusian, Slovenian, Estonian, Latvian, Lithuanian, Tajik, Persian, Vietnamese, Armenian, Azeri, Basque, Upper Sorbian, Macedonian (FYROM), Setswana, isiXhosa, isiZulu, Afrikaans, Georgian, Faroese, Hindi, Maltese, Sami (Northern), Irish, Malay, Kazakh, Kyrgyz, Kiswahili, Turkmen, Uzbek, Tatar, Bengali, Punjabi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayalam, Assamese, Marathi, Sanskrit, Mongolian, Tibetan, Welsh, Khmer, Lao, Galician, Konkani, Syriac, Sinhala, ...

img onerror

The onerror event is triggered if an error occurs when loading an image. <div id="testDiv"></div> function setNoneImg(){   $('#testDiv img').each(function(i){     $('#testDiv img')[i].onerror=function(){         $($('#testDiv img')[i]).attr('src',"error.jpg");       }     }   );   }  w3 schools.com/jsref/event_img_onerror.asp