$.post
응답을 배열로 받았습니다. jQuery를 사용하여이를 어떻게 파싱 할 수 있습니까?
array[0][gender]
array[1][lang]
가 여기에 응답을 사전에
Array
(
[0] => Array
(
[gender] => <label for="genderType">Gender</label><input type="radio" id="femaleId" class="radioBtn" name="genderType" checked="checked" value="1"/>input type="radio" id="maleId" class="radioBtn" name="genderType" value="2" />Male
[lang] => <label for="email">Preferred Language:</label><select class='selectStaff dateClass' name='lang' id='lang'><option value=""></option>\n<option value="English">English</option>\n</select>
)
)
감사를 그대로
나는 출력이 필요합니다.
()'. 'print_r()'대신 결과를 출력하는 대신'print json_encode()'를 사용하지 않는 것이 좋습니다. 그래서 JavaScript는 기본적으로 이해할 수있는 형식으로되어 있습니까? – ceejayoz
Json_encode 이후에 응답 해 주셔서 감사합니다. 성별 <\/label> 기본 언어 : <\/label> strong><\/option> \\ n 한국어 <\/option> \\ n <옵션> class = 'selectStaff dateClass'name = 'lang'id = 'lang'> value = \ "Armenian \"> 아르메니아어 <\/option> \\ n <\/select><\/br> "}] 지금 어떻게 할 수 있겠 니? ... –
Devswa