• vue将数据绑定到属性中


    *必须使用[]

    <tr v-for="(p,index) in prodects">
            @*v-bind:class="styleType(index)"*@
        <td v-for="(value,key) in p">{{value}}</td>
        <td>
            <form id="updateP" action="/Home/UpdateProduct" method="get">
                <div class="">
                    <input type="text" name="id" v-bind:value="[p['产品编号']]" />
                    <input type="text" name="name" v-bind:value="[p['产品名称']]" />
                    <input type="text" name="price" v-bind:value="[p['价格']]" />
                    <input type="text" name="address" v-bind:value="[p['产地']]" />
                    <input type="text" name="id" v-bind:value="[p['生产商']]" />
                    <input type="text" name="id" v-bind:value="[p['重量']]" />
                </div>
                <a role="button" class="btn" v-on:click="updateProduct(p)" data-toggle="modal" data-target="#myModal">
                    修改
                </a>
            </form>
        </td>
  • 相关阅读:
    DispatcherServlet
    上转型对象
    Javascript闭包(Closure)
    跨域
    dict
    Python 函数参数传递方式
    协同过滤
    白话 动态规划 第一节 初识动态规划
    Spring@Autowired注解与自动装配
    protected
  • 原文地址:https://www.cnblogs.com/zhuxiang1633/p/7768888.html
Copyright © 2020-2023  润新知