当我将代码复制并粘贴到这个问题中时,ready没有删除线,但在我的 IDE (VS) 中,您会看到它看起来像.ready
这有什么意义吗?该代码似乎仍然有效,但如果这是一个问题,我想现在就解决它;因为我想以正确的方式使用 jQuery。
我的代码:
$(document).ready(
function () {
$('.pets').hide();
}
)
Run Code Online (Sandbox Code Playgroud)
我在VS中看到的:
