时间:2022-05-03 10:57:37 | 栏目:JavaScript代码 | 点击:次
如下所示:
{"idCardAddress":"123","idCardNumber":"345","eRegAddress":"456"}
后台传过来的数据是这样的,前台无法通过el表达式直接获取,通过
jsvar fingerprint =${obj.data.fingerprint}; for (var key in fingerprint) { document.getElementById(key).value=fingerprint[key]; }
key就是input输入框的id值,也是json的key值