Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   missing } after property list (https://javascript.ru/forum/misc/61616-missing-%7D-after-property-list.html)

Madzal 26.02.2016 11:38

missing } after property list
 
Как нужно правильно записать этот код ?
GM_xmlhttpRequest({
        method: "GET",
        url: "http://web.archive.org/web/20140306220001/http://m.megafonpro.ru/home?from_404=1",
    onload: function (m) { 
        GM_xmlhttpRequest({
         method: "GET",
            url: m.responseText.match(/(\http:\/\/m\.megafonpro\.ru\/mailru\/proxy\/[0-9a-f]{32})/g)[0],
         onload: function (e) {
        GM_xmlhttpRequest({
         method: "GET",
        url: 'http://m.megafonpro.ru/'+e.responseText.match(/(\mailru\/proxy\/[0-9a-f]{32})/g)[2]),
         onload: function (f) {
             alert(f.responseText.match(/(\mailru\/leave\/[0-9a-f]{32})/g)[0]));
        )}})
    }
});

Madzal 26.02.2016 11:46

проблема решена,как всегда запутался в скобках :D


Часовой пояс GMT +3, время: 04:52.