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