猿问

RadioGroup选择错误

RadioGroup选择错误
Radio可以同时选择。`<html>

https://jsfiddle.net/ozx2937s/1/

<head>

<link href="https://cdn.bootcss.com/iview/3.1.5/styles/iview.css" rel="stylesheet"><script src="https://cdn.bootcss.com/vue/2.5.18-beta.0/vue.min.js"></script><script src="https://cdn.bootcss.com/iview/3.1.5/iview.min.js"></script><script src="https://cdn.bootcss.com/iview/3.1.5/locale/zh-CN.js"></script>

</head>

<body>

<div id="app">
    <RadioGroup v-model="value">
        <Radio v-for="o in items" :label="o">
        </Radio>
    </RadioGroup></div><script>
    new Vue({
        el: "#app",
        data: {
            value: "",
            items: ['男', '女'],
        }
    });</script>

</body>

</html>`


人到中年有点甜
浏览 636回答 1
1回答
随时随地看视频慕课网APP

相关分类

Html5
我要回答