我已经查看了第一个标签下张贴的问题,但我找不到任何与我试图做的事情相匹配的问题。
有没有办法在同一页中创建多个上传程序的实例?
我有一块一直运行良好的块
<div
class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8" id="fileSelectButton" name="fileUpload"
ng-show="canSelect && !isProcessing && fileReaderSupported && !partialFiles.length"
ng-id="odsFileSelect" tabindex="0"
ngf-accept="selectedUploadType.expected_file_type"
ng-model="selectedFiles" ngf-keep="'distinct'"
ngf-select="setBannerStatus('isProcessing'); onFileSelect(selectedFiles); "
ngf-multiple="true"
>
Click to upload {{ selectedUploadType.display_name }} files
</div>然后我在下面添加了几行代码
<div
class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8"
id="partialSelectButton" name="partialUpload"
ng-show="canSelect && !isProcessing && fileReaderSupported"
ng-id="odsPartialSelect" tabindex="0"
ngf-accept="selectedUploadType.expected_file_type"
ng-model="partialFiles" ngf-keep="'distinct'"
ngf-select="onPartialSelect(partialFiles); "
ngf-multiple="true"
>
Click to add or replace files
</div>即使该函数在第二个函数上触发,模型对象也是空的。它不会显示选定的文件
我真的很感谢你的帮助,谢谢
发布于 2021-09-27 19:06:55
对帖子的事我很抱歉。我的代码不能工作,因为第二个代码在if渲染下,这在一开始是false的。我现在知道问题所在了,泰
https://stackoverflow.com/questions/69351616
复制相似问题