多選中name的作用
<form>
?<label>你對什么運動感興趣:</label><br/>
? <label for="joyi">慢跑</label>
? <input type="checkbox" ?id="joyi"/><br/>
? <label for="ajoyi">登山</label>
? <input type="checkbox" ?id="ajoyi"/><br/>
? <label for="ljoyi">籃球</label>
? <input type="checkbox" ?id="ljoyi"/>
</form>
這里面我將name刪了依然不影響
name="three"
2015-07-24
那是因為你沒傳參數(shù)到后臺,到后臺就需要name來獲取值了。