第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

發(fā)布到 PHP 時(shí)出現(xiàn) HttpErrorResponse - SyntaxError: JSON

發(fā)布到 PHP 時(shí)出現(xiàn) HttpErrorResponse - SyntaxError: JSON

PHP
森欄 2023-07-15 10:12:28
我正在嘗試將 formgoup 中的值發(fā)布到 php 頁(yè)面,最終保存在 mysql 數(shù)據(jù)庫(kù)中。當(dāng)我嘗試 POST 時(shí),我不斷收到錯(cuò)誤響應(yīng):SyntaxError: Unexpected token a in JSON at position 41    at JSON.parse (<anonymous>)    at XMLHttpRequest.onLoad (http://localhost:8100/vendor.js:9017:51)    at ZoneDelegate.invokeTask (http://localhost:8100/polyfills.js:3505:35)    at Object.onInvokeTask (http://localhost:8100/vendor.js:75756:33)    at ZoneDelegate.invokeTask (http://localhost:8100/polyfills.js:3504:40)    at Zone.runTask (http://localhost:8100/polyfills.js:3273:51)    at ZoneTask.invokeTask [as invoke] (http://localhost:8100/polyfills.js:3586:38)    at invokeTask (http://localhost:8100/polyfills.js:4727:18)    at XMLHttpRequest.globalZoneAwareCallback (http://localhost:8100/polyfills.js:4764:25)我在離子應(yīng)用程序中使用的代碼是:        let body = {            fullname: this.slideOneForm.value['fullName'],            gender: this.slideOneForm.value['gender'],            age: this.slideOneForm.value['age'],            mstatus: this.slideOneForm.value['mstatus'],            flocation: this.slideOneForm.value['flocation'],            telno: this.slideOneForm.value['telno'],            email: this.slideOneForm.value['email'],            username: this.slideOneForm.value['username'],            password: this.slideOneForm.value['password'],            enterprise1: this.selected_enterprises[0],            enterprise2: this.selected_enterprises[1],            enterprise3: this.selected_enterprises[2],            farmstock1: this.slideTwoForm.value['farm_stock'][0],                };
查看完整描述

1 回答

?
達(dá)令說(shuō)

TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超6個(gè)贊

排序了。我的 sql 請(qǐng)求中存在語(yǔ)法錯(cuò)誤:)



查看完整回答
反對(duì) 回復(fù) 2023-07-15
  • 1 回答
  • 0 關(guān)注
  • 176 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)