如图所示功能如何实现,请大神指教

如图所示功能如何实现,请大神指教图片说明

你既然有截图,那么你可以直接f12去看对应的html和js代码,照着模仿就可以了。
这个无非就是动态添加表格行,里面有各种input

你要实现的是这个前端页面,还是后台功能,还是前后台都要?

直接 jq 点击添加 dom 不就行了嘛 真是的

我简单给你写了个,你把细节完善一下就好了
图片说明

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        span {
            cursor: pointer;
        }

        .add {
            display: inline-block;
            width: 101px;
            height: 30px;
            line-height: 30px;
            background: #0089ff;
            color: #fff;
            font-size: 12px;
            text-align: center;
            margin-bottom: 20px;
        }

        input {
            width: 80px;
            height: 22px;
            margin: 0 10px;
        }

        .listBox {
            margin-bottom: 14px;
        }

        .quote {
            font-size: 10px;
            margin-left: 40px;
        }

        .quote span {
            margin-right: 10px;
            color: #0089ff;
        }

        .quote span:last-child {
            color: #f00;
        }
    </style>
</head>

<body>
    <span class="add" onclick="addList()">+添加硬件报价</span>
    <div class="quote">

    </div>
</body>
<script src="../js/jquery-1.12.3.min.js"></script>
<script>
    var count = 0;

    function addList() {
        count++;
        $('.quote').append(` <div class="listBox">${count}<input type="text"><input type="text"><input type="text">单价<input type="text">数量<input type="text"> 合计<input type="text"> <span onclick="add(this)">添加</span><span onclick="remove(this)">删除</span></div>`);
    }

    function add() {
        // 这个添加方法,你可以根据需求去实现
    }

    function remove(op) {
        $(op).parent('div').remove();
    }
</script>

</html>