好的......显然这是因为我很新.我不明白为什么这不起作用.我认为这是因为论证不在函数内部,但我不知道.
<head>
<title>Documento sin título</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
$(function(){
$("p").hide();
});
</script>
</head>
<body>
<p>hi</p>
</body>
Run Code Online (Sandbox Code Playgroud)