import Module from './module.js'
export default { Module }
<script type="module" src="app.js"></script>
<script type="module">
import App from './app.js'
console.warn(App.Module);
</script>
$('.table-results').on('click', '.test', function(e) {
alert('test');
});
var plus = document.getElementById('plus').onclick = function (){
var first = parseInt(document.getElementById('first').value);
var second = parseInt(document.getElementById('second').value);
var sum = first + second;
alert(sum);
}
function modal(title, content) {
$('#modal-window').toggleClass('visible');
$("#modal-window > .modal-title").html(title || "");
$("#modal-window > .modal-content").html(content || "");
}
function hideModal() {
$("#modal-window").removeClass("visible");
}
var hideModal = setTimeout(hideModal, 5000);
$(document).on("mousedown", function(e) {
if (
$("#modal-window").hasClass('visible')
&& e.target.className === 'modal-close'
|| !$("#modal-window")[0].contains(e.target)
) {
hideModal();
clearTimeout(hideModal);
}
});
// Показываем окно
modal("Hello!!!", "Helloooooo");
Math.max.apply(null, [1,2,3])
Math.max(1,2,3)
Math.max.call(null, 1, 2, 3);
// будет
Math.max(1,2,3)