zoukankan      html  css  js  c++  java
  • 设为首页和加入收藏通用JS

    设为首页:
    Code

    (或者这样也可以:<a href="javascript:;" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);return(false);">设为首页</a>)
    加入收藏:

    function addfavo()
       {
          window.external.AddFavorite(location.href, document.title);
       }
  • 相关阅读:
    [LeetCode] 824. Goat Latin
    [LeetCode] 21. Merge Two Sorted Lists
    [LeetCode] 1021. Remove Outermost Parentheses
    [Note] Clipboard.js 使用
    [LeetCode] 665. Non-decreasing Array
    [LeetCode] 897. Increasing Order Search Tree
    [LeetCode] 136. Single Number
    [LeetCode] 822. Card Flipping Game
    [LeetCode] 922. Sort Array By Parity II
    [LeetCode] 965. Univalued Binary Tree
  • 原文地址:https://www.cnblogs.com/guanjie20/p/1597449.html
Copyright © 2011-2022 走看看