JQuery has no permissions when clicking on the form submission

  • 2020-03-30 03:36:07
  • OfStack

Today, I encountered a problem. When I clicked the form submission, jQuery would appear without permission.

Baidu has a lot of reasons to say that jquery cross-domain and so on, comparison of the project, found no such reasons; However, inspired by this, using json can prevent this kind of problem, but the methods they provide are complex and require changing the foreground and background.

Try jquery's own json method submitted successfully!


$.post("actionName.action",{"id": value ,"name": value },
function(data){
if(data=="ok"){
alert(ok)
}
})

Related articles: