var res = ["q:", "Name:David", "Surname:david", "Description:des.", "Title:NewRegister", "fieldtype:phoneTel", "fieldname:(111) 111-1111", "fieldtype:faks", "fieldname:(111) 111-1111", ""]
我想粉碎我分享的膝盖。队列附带的fieldtype和fieldname的使用如下:
fieldtype : fieldname => phoneTel :(111) 111-1111
如果这些名称在其中,则它们将与for一起返回并插入到另一个数组中。
var observableArray = ([
{ DataVariable: fieldname[i], DataType: fieldtype[ ?]' },
]);