我正在使用laravel家伙 在这里我的
index.blade.php
{
"data": [
{
"token_id": 15,
"token": "zzzzzzzzzzzz",
"id": "dddddddd",
"platform": "iOS",
"device_type": "iPhone",
"app_id": 1
},
{
"token_id": 16,
"token": "1234",
"eid": "BAD-TO",
"platform": "iOS",
"device_type": "iPhone",
"app_id": 1
}
], "message": "Retrieved ALL registered device tokens." }
答案 0 :(得分:0)
这是一个解决方案
$(document).ready(function(){
var x = 0;
$(".add-row").click(function(){
x++;
$("table > tbody").append('<input class="form-control" type="text" name="MFI[]" placeholder="Major Final Output" id="MFI'+x+'" value="Participate in school activities">');
}); //add input box
});
注意:检查您的HTML中是否存在
table > tbody
。