jeudi 28 juillet 2016

framework7 load external jquery script

I am trying to load an external jquery script to my Framework7 app. I am using the following code which loads the javascript successfully, however it is currently just adding that JS code into my Div as HTML. How do I load the JS and also have it compile as JS?

myApp.onPageInit('about', function (page) {
  $$.get('js/sc-player.js', {}, function (data) {
    $$('#sc-js').html(data);
  });
});

Aucun commentaire:

Enregistrer un commentaire