I 开发者_开发知识库have a regular link
<a href="Auth/LogOut" data-role="button">Log Out<a>
and I have to specify that it should be navigated to with the POST verb.
How exactly do I do that?
Docs: jQuery Mobile
// using changePage to use POST on submit
$("#LogOut").bind("submit", function() {
if (validateFormData()) {
changePage({
url: "Auth/LogOut",
type: "post",
data: anyDataNeedingPassing
}, false);
精彩评论