Uncaught TypeError: Cannot read property 'msie' of undefined is the error

use*_*740 4 javascript couchdb

I keep getting

Uncaught TypeError: Cannot read property 'msie' of undefined

when I try to console log a view from couchdb. I'm new to coding and I don't know what this error means. When I use an ajax call to basically do the same thing it works and pulls the view from my couch database. This is for school so I need to get the couch call working. thanks for any help.

HTML:

<html>

<head>
    <title>SK8
        TEAMS</title>
    <meta charset="utf-8"/>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="css/jquery.mobile.flatui.css"/>
    <script src="jquery-1.9.1.min.js"></script>
    <script src="jquery.mobile-1.3.2.min.js"></script>
    <link rel="stylesheet" href="style/main.css"/>
</head>

<body>

    <section data-role="page" id="home" data-theme="c">
         <section data-role="header" data-position="fixed">
            <h1>Home</h1>
            </section>
            <section data-role="content" class="ui-body-c">
                <ul id="homeItems" data-role="listview">
                </ul>
             </section>
         </section>

     <script src="jquery.couch.js"></script>
     <script src="my.js" type="text/javascript"></script>
</body>
Run Code Online (Sandbox Code Playgroud)

JAVASCRIPT:

$(document).on('pageinit', '#home',
    function () {
        $.couch.db("sk8team").view("app/company", {
            success: function (data) {
                console.log(data);
            }
        });
    });
Run Code Online (Sandbox Code Playgroud)

Muh*_*ine 5

我也有类似的错误,但我解决了。这是我从Stack Overflow获得的一段代码。只需将其粘贴到脚本中即可。并下载最新版本的jQuery。我使用的是jquery-1.10.2.js。

JavaScript:

 jQuery.browser = {};
 (function () {
    jQuery.browser.msie = false;
    jQuery.browser.version = 0;
    if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
       jQuery.browser.msie = true;
       jQuery.browser.version = RegExp.$1;
  }
 })();
Run Code Online (Sandbox Code Playgroud)