现代的网站是高度交互的:动态的导航菜单、图像切换、表单,甚至还支持拖拉操作。
Modern Web sites are highly interactive: Dynamic navigation menus, image rollovers, forms, and even drag and drop are available.
通过单击一个按钮,用户能够切换两个版本的表单,使用Ajax向服务器提交数据并获取用于更新页面的HTML内容。
By clicking a button, the user can switch between the two versions of the form, submitting the data to the server with Ajax and retrieving the HTML content that is needed to update the page.
通过使用一些 jQuery,我们可以在默认列表视图和这个 add-new-server 表单之间切换。
page, as shown in Listing 2. We switch between the default list view and this add-new-server form with some jQuery magic.
应用推荐