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.
我有一个显示由 ASP 和 SQL 生成的结果的区域。我希望使用 ajax 来更新这个区域,而不是每次都刷新页面。
我看过很多教程、w3c 等。没有一个有帮助。
谁能给我一些指示?
这假定 ajax 调用返回您要在替换旧的 html 时使用的 html。
$.get('/path/to/file', function(data) { $('#my_replaced_div').html(data); });
我将 Primefaces 3.4.2 与 JSF 2.0 一起使用
我在 JSF 页面的对话框弹出窗口中有以下内容。
<p:dialog header="Create New Request" style="font-weight:bold"