我想在PHP中操作JavaScript數(shù)組??梢赃@樣做嗎?$.ajax({ type: "POST", url: "tourFinderFunctions.php", data: "activitiesArray="+activities, success: function() { $("#lengthQuestion").fadeOut('slow'); } });活動是一個單維數(shù)組,如:var activities = ['Location Zero', 'Location One', 'Location Two'];我嘗試這個時(shí)腳本沒有完成...我該如何解決?
通過jQuery $ .ajax將JavaScript數(shù)組傳遞給PHP
鴻蒙傳說
2019-08-31 16:12:08