//以下是兩個(gè)input選項(xiàng) <input type="radio" id="radio" name="privacy" value="true" style="margin-left: 0px">私密 <input type="radio" id="radio" name="privacy" value="false" >公開(kāi) //這里“privatelyOwned”我需要post給后端一個(gè)bool值,當(dāng)選擇私密的時(shí)候是true,當(dāng)公開(kāi)時(shí)是false data:JSON.stringify ({ "privatelyOwned": , })
當(dāng)選項(xiàng)被選中怎么返回一個(gè)bool值
www說(shuō)
2018-08-06 13:10:35