这是我的代码:
inserisciMarker();
function scorriAllaLista(param) {
alert(param);
}
function inserisciMarker() {
markerClick = function () {
$('#example').attr("onclick", "scorriAllaLista('hello'); return false;");
};
markerClick();
}
点击链接,Uncaught ReferenceError: scorriAllaLista is not defined
为什么?我该如何解决?