---
title: "location.href与$('#form').submit()的用法注意"
author: "clgoogle"
date: "2013-02-28T18:24:00Z"
tags: []
categories: ["移动开发"]
slug: "location-href-form-submit"
draft: false
lastmod: "2013-05-18T13:16:05Z"
id: 1818948
url: "https://clgoogle.iteye.com/blog/1818948"
---

[![](http://time-earn.com/images/468.gif)](http://time-earn.com/?ref=clgoogle)

location.href重定向url后  
不要紧接着 写$('#form').submit();

有些浏览器将不会执行location.href而直接就执行后面的表单提交了