Jquery Form.submit() on Chrome works but not in Firefox
问题 I have the following function that collects data from a page, stuffs them all into the 'data' variable, appends it to a form then submits it. $(document).ready(function () { $('#content-tab .submit').click(function () { var data = {champion: window.selectedChampion, runes: runes, masteries: masteries, items: items, skillingOrders: skillingOrders, chapters: chapters, title: $('#guide_title').val()}; data = JSON.stringify(data); $("<form method='post'>").append($('<input type="hidden" name=