历史推动状态不起作用铬

时间:2015-08-30 14:09:33

标签: javascript

我正在尝试使用函数

修改历史记录
new Ajax.Request(
    'index.php',
    {queue: {position: 'end', scope: 'command'},
        method: 'post',
        postBody:urlstring +'query=true&file=index&module={$MODULE}&action={$MODULE}Ajax&ajax=true&search=true',
        onComplete: function(response) {
                    $("status").style.display="none";
                                result = response.responseText.split('&#&#&#');<!--juan-->
                                $('bfCache').value = $('bfCache').value + result[2];
                                $("ListViewContents").innerHTML= result[2];
                                if(result[1] != '')
                   alert(result[1]);
                $('basicsearchcolumns').innerHTML = '';
                history.pushState(null, null, 'index.php?'+urlstring +'query=true&file=index&module={$MODULE}&action={$MODULE}Ajax&ajax=true&search=true');

        }
       }
    );

在下一个代码中

tell application "Finder" to set theFiles to files of folder importFolder whose name extension is in extensionsList

if (count theFiles) < 1 then
    display dialog "No images selected!" buttons "OK"
else
    set theFile to some item of theFiles
    set albumName to "testscript"
    set imageList to {theFile as alias}

    tell application "Photos"
        activate
        delay 2
        if not (exists container albumName) then
            set theAlbum to make new album
            set name of theAlbum to albumName
        else
            set theAlbum to container albumName
        end if
        import imageList into theAlbum skip check duplicates yes
    end tell

    tell application "Finder" to move theFile to trash
end if
return 7
end idle

。当我在Firefox中测试我的后退按钮时,这是有效的,但在Chromium中没有工作(我得到了ERR_CACHE_MISS)。你能帮帮我吗?

0 个答案:

没有答案