springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2021-07-12 10:58:10
227
我是javascript新手,尝试构建一个文件上传,用户可以上传文件或从下拉列表中选择文件或输入文件路径。
一切都很好,直到我试图创建一个列表'car',在input元素中提供两个示例选择选项。
FileUpLoad (input_def) {
input_def.id = this.uid()
const Label = document.createElement('label')
Label.className = 'custom_file_upload'
const Input = document.createElement('input')
Input.type = 'file'
const Input1 = document.createElement('input')
Input1.type = 'text'
Input1.list = 'car'
const DataList = document.createElement('datalist')
DataList.id = 'car'
const Option1 = document.createElement('option')
Option1.textContent = 'Volvo'
DataList.append(Option1)
const Option2 = document.createElement('option')
Option2.textContent = 'Suzuki'
DataList.append(Option2)
Label.append(Input)
Label.append(Input1)
Label.append(DataList)
const Li = document.createElement('i')
Li.innerText = ' Upload Data'
Li.className = "fa fa-cloud-upload"
Label.append(Li)
const row = document.createElement('div')
row.className = 'ui-form-element section-row'
row.id = input_def.id
row.append(Label)
return row
}
如何解决此错误?
TypeError: Cannot set property list of #<HTMLInputElement> which has only a getter
谢谢
顺晟科技:
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11