0
我想使用网站scratchpad.io上的函数,但它们似乎不起作用。我曾尝试使用按钮的onclick事件,并在定义后从同一个脚本标记中调用该函数。有谁知道这是为什么,以及如何解决它?scratchpad.io函数不起作用
<script>
function Message(){
alert("scratchpad.io does not work with functions... You won't see this!");
console.log("scratchpad.io does not work with functions... You won't see this!");
}
Message();
</script>
<br>
<button onclick="Message();">Trigger Function</button>