title: My jquery.cookie.js report error
body: <p>In my templates I include the <code>jquery</code> and <code>jquery.cookie.js</code>, but get the below error:</p>
  
  <p><a href="https://i.stack.imgur.com/sxMXV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxMXV.jpg" alt="enter image description here"></a></p>
  
  <p>The below is my html code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;cookie-login1&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;form action="/cookie/login1/" method="post"&gt;
          &lt;input type="text" name="username"&gt;
          &lt;input type="text" name="pwd"&gt;
          &lt;input type="submit" value="add"&gt;
          &lt;input id="btn" type="button" value="button-add"&gt;
      &lt;/form&gt;
  
  
  &lt;/body&gt;
  
  
  &lt;script src="/static/js/jquery.cookie.js"&gt;&lt;/script&gt;
  &lt;script src="/static/js/jquery-2.1.4.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  
      $(function(){
          $("#btn").click(function(){
              $.ajax({
                  url:'/cookie/login1/',
                  type:"POST",
                  data:{'username':'root', 'pwd':'123'},
                  success:function(response){
  
                  }
              })
          })
      })
  
  &lt;/script&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>My jquery version is <code>2.1.4</code>, and my <code>jquery.cookie.js</code> version is <code>1.4.0</code>.</p>