1.阻止跳转a标签的链接 2.location.replace(href) 不生成新的历史记录, 但有bug 3.首先通过HTML5 history.replaceState()方法把当前URL地址替换成以个井号#结尾的目前链接地址: 4.执行location.replace('')刷新当前地址(此时#会忽略): (function(){ var fnUrlReplace = function (eleLink) { if (!eleLink) { return; } var href = el
# vi ~/.bash_history 清空里面的记录,并退出当前shell # exit(一定要退出当前shell) # history 1 vi ~/.bash_history 2 history |grep mysql 3 clear 4 vi ~/.bash_history 5 echo "" > ~/.bash_history 6 vi ~/.bash_history 7 history 8 exit 9 history #之前的内容被清空!!! [root@loca