title: call external function in vuejs component
body: <p>I want use jsgrid.min.js to create table in vue component.I should call this in jsgrid.min.jsfunction</p>
  
  <pre><code>jsGrid(..)
  </code></pre>
  
  <p>how can i do this?(call a function that placed outer the vue component in component )</p>
  
  <p>component.vue</p>
  
  <pre><code>&lt;template&gt;
      &lt;div id="jsGrid"&gt;
  
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          data: () =&gt; ({
          name: "mja"
      }),
  
  
      mounted () {
  
          $("#jsGrid").jsGrid({
              width: "100%",
              height: "500px"
  
              });
  
      }
      }
  &lt;/script&gt;
  
  &lt;style scoped&gt;
  
  &lt;/style&gt;
  </code></pre>
  
  <p>error</p>
  
  <blockquote>
    <p>[Vue warn]: Error in mounted hook: "TypeError: $(...).jsGrid is not a function"</p>
  </blockquote>
  
  <p>I actually embedded src file </p>
  
  <pre><code>&lt;script type="text/javascript" src="{{ asset('plugins/jsgrid/dist/jsgrid.min.js')}}"&gt;&lt;/script&gt;
  </code></pre>