<form>
<table>
<div id="divhenshua">
<Select v-model="vvmodel" disabled style="width:200px">
<Option v-for="item in listhenshua" :value="item.henshuaDescription" :key="item.henshuaName">{{ item.henshuaDescription }}</Option>
</Select>
</div>
</table>
</form>
<script>
$(function () {
$.get("/henshua.sp?method=queryhenshuaList", function (res) {
console.log("henshua", res);
vhenshua.listhenshua = res.rows;
});
});
var vhenshua = new Vue({
el: "-sharpdivhenshua",
data: {
listhenshua: [],
vvmodel:""
}
});
</script>
</body>
< hr >
has introduced vue, to see that network has something, and json can also get it. There is no error.
the style returned is
{
"total": 1,
"rows": [
{
"henshuaName": "2",
"henshuaDescription": "bbbk",
}
]
}
- I have tried that the front-end console has data output and can get to data
- there is no error in writing.
- Please all the great gods to guide me as a rookie
- Thank you for your patience