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.
比如说我有这个代码:
function tester($userInput) { this.$userInput1 = userInput; }
$object 并不意味着 JavaScript 中的任何特定内容。它只是一个变量名。但是,如果您已包含 jQuery 库,则可以使用 $ 来引用 jQuery 库,例如:$.ajax()或$('#element_id')
$.ajax()
$('#element_id')