Hello,
it’s possible use the Jquery and dataTabes.net into framework7, Vue and Cordova project?
I try to import jQuery into index.html in this mode:
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
and test whit this code:
window.onload = function() {
if (window.jQuery) {
// jQuery is loaded
alert("Yeah!");
} else {
// jQuery is not loaded
alert("Doesn't Work");
}
}
It’s work!!!
If import in the app.js file not work
import JQuery from './js/jquery-3.4.1.min.js';
For local file where i put the file ?
After when try to integrate a datatable i use cdn file:
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js" ></script>
But, when i try to initialize the datatable i have error.
$(document).ready(function() {
$('#example').DataTable();
});