<progress id="btth9"></progress>
<sub id="btth9"><thead id="btth9"><font id="btth9"></font></thead></sub>

<sub id="btth9"></sub>

      <big id="btth9"></big>

      <progress id="btth9"></progress>

      <big id="btth9"></big>

      win7系統下載
      當前位置: 首頁 > 硬件軟件教程 > 詳細頁面

      JavaScript圖文教程之檢測瀏覽器版本案例區分_javascript

      發布時間:2021-12-29 文章來源:xp下載站 瀏覽:

      軟件是一系列按照特定順序組織的計算機數據和指令的集合。一般來講軟件被劃分為編程語言、系統軟件、應用軟件和介于這兩者之間的中間件。硬件是“計算機硬件”的簡稱。與“軟件”相對,電子計算機系統中所有實體部件和設備的統稱。

        JavaScript基本上都是需要跟瀏覽器打交道的,而JavaScript要怎么運用到瀏覽器上面去,下面小編就給大家提供下實例分析吧。

      JavaScript教程之檢測瀏覽器版本實例分析
      JavaScript教程之檢測瀏覽器版本實例分析

        《html》

        《body》

        《script type=“text/javascript”》

        var browser=navigator.appName

        var b_version=navigator.appVersion

        var version=parseFloat(b_version)

        document.write(“瀏覽器名稱:”+ browser)

        document.write(“《br /》”)

        document.write(“瀏覽器版本:”+ version)

        《/script》

        《/body》

        《/html》

        瀏覽器名稱:Microsoft Internet Explorer

        瀏覽器版本:4

        《html》《BR》《body》《BR》《script type=“text/javascript”》《BR》document.write(“《p》瀏覽器:”)《BR》document.write(navigator.appName + “《/p》”)《BR》《BR》document.write(“《p》瀏覽器版本:”)《BR》document.write(navigator.appVersion + “《/p》”)《BR》《BR》document.write(“《p》代碼:”)《BR》document.write(navigator.appCodeName + “《/p》”)《BR》《BR》document.write(“《p》平臺:”)《BR》document.write(navigator.platform + “《/p》”)《BR》《BR》document.write(“《p》Cookies 啟用:”)《BR》document.write(navigator.cookieEnabled + “《/p》”)《BR》《BR》document.write(“《p》瀏覽器的用戶代理報頭:”)《BR》document.write(navigator.userAgent + “《/p》”)《BR》《/script》《BR》《/body》《BR》《/html》《BR》

        瀏覽器:Microsoft Internet Explorer

        瀏覽器版本:4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET4.0C; .NET4.0E; Maxthon 2.0)

        代碼:Mozilla

        平臺:Win32

        Cookies 啟用:true

        瀏覽器的用戶代理報頭:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET4.0C; .NET4.0E; Maxthon 2.0)


      硬件是實在的,有模有樣的。軟件是程序性的。是一系列的指令。有了軟件,硬件才會實現更豐富的功能。

      日本不卡免费新一区二区三区