在這種情況下,error callback 的第三個引數會是擲出的error 物件。 注意dataType 為"script" 的請求傳回不正確的JavaScript 程式碼時並不會導致錯誤。 ... <看更多>
php ajax回傳 在 [問題] json回傳undefined - 看板Ajax | PTT數位生活區 的推薦與評價
不好意思想請問我使用ajax至php 想做json回傳用json回傳後出來都會是undefind $("#select_submit").on('click', function () { $.ajax({ url:"add.php", ... ... <看更多>
php ajax回傳 在 jquery-ajax-post-demo - GitHub 的推薦與評價
jQuery Ajax 實現不刷新頁面提交資料Demo (後端使用PHP 處理回傳json). Contribute to GoneToneStudio/jquery-ajax-post-demo development by creating an account on ... ... <看更多>
php ajax回傳 在 [問題] ajax 傳值給php - 批踢踢實業坊 的推薦與評價
這是我的js
我點擊圓點就會把他的id 值傳給php
chart.php
錯誤
請問是ajax 裡的data這樣寫不行嗎?
我的js 是放在a文件檔中
html,php是放在一起,然後放在b文件檔
-----
Sent from JPTT on my OPPO CPH1701.
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 42.74.174.167 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1590335406.A.4E6.html
錯誤還是一樣
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/25/2020 01:38:33
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/25/2020 02:00:56
會顯示跟上面一樣的錯誤
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/27/2020 18:39:27
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/28/2020 11:14:41
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/28/2020 20:13:35
我將我的程式打在這
https://plnkr.co/edit/C0q12sIdlcSfFEwG?open=lib%2Fscript.js
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/28/2020 21:50:34
在html看f12,是有資料回傳回來。但是之後需要在php中做一些處理,所以還是要得到資料
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/28/2020 22:17:45
※ 編輯: lucy35 (42.74.174.167 臺灣), 05/30/2020 02:07:19
... <看更多>