分類
- Heavenly Khan Design使用教程 (5)
- 技術部落格 (13)
- 外貿建站故事 (0)
只需要在程式碼裡加入下面的程式碼:
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://example.com/';< /span>
}, false );
</script>
支援的監聽事件:
wpcf7invalid — Fires when an Ajax form submission has completed successfully, but mail hasn’t been sent because there are fields with invalid input. 當已經提交表單成功但是 有不無效的欄位的時候觸犯發此事件。 wpcf7spam — Fires when an Ajax form submission has completed successfully, but mail hasn’t been sent because a possible spam activity has been detected. 垃圾郵件。 wpcf7mailsent — Fires when an Ajax form submission has completed successfully, and mail has been sent. 成功寄送時。 wpcf7mailfailed — Fires when an Ajax form submission has completed successfully, but it has failed in sending mail. 發送失敗時。 wpcf7submit — Fires when an Ajax form submission has completed successfully, regardless of other incidents. 提交後。