我无法从HTML文件中的外部javascript文件调用函数。请告诉我哪里出错了。。。
文件1:A.js
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i
function sayHello(){
console.log("hello");
}
},{}]},{},[1]);
文件2:index.html
JS Binarticle, aside, figure, footer, header, hgroup,
menu, nav, section { display: block; }
click Me
rotate me
现在,每当我运行html文件时,在单击sayHello()按钮之后就会出现一个错误。
请帮我找出错误!