Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的代码安全吗?会document可用吗?
document
<html> <head> <script type="text/javascript"> $(document).delegate(".my-class", "click", function() { /* do something here */ } ); </script> </head> </html>
是的,它是完全安全的。document永远存在。