我完全不熟悉jQuery。我找不到任何有關get函數的好文檔,並想知道我是否可以得到一些幫助。新手到jQuery和獲取功能
我有一個名爲me.html的HTML頁面,只有一個div叫我。我想使用下面的頁面來獲取div內的內容。即使谷歌在正確的方向將有所幫助。非常感謝
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="data.js"></script>
</head>
<body>
<form id="form" runat="server">
<div>
<div id="me">
</div>
</div>
</form>
</body>
</html>
取決於您要加載'#me'成。看到你如何在你的問題標題中提到'$ .get',我假設你想從另一個頁面加載'div#me'?如果是這樣,那麼你真的在尋找'$ .load()'。 [點擊此處查看文檔](http://api.jquery.com/load/) – rgin