f描述一系列输入



我正在尝试获得一系列不同的输入,但我不知道如何在咖啡上做到这一点,谢谢你的提示。

如果我在脚本上写另一个输入,第一个就不起作用了。

previewBoxWidth = 256
previewBoxHeight = 180
createUploadWithPreviewBox = (container, counter) ->
  #create preview box and file field and appending it to container
  input = $("<input type='file' id='f1' name='user[f1]'>")
  input = $("<input type='file' id='l1' name='photo[l2]'>")

  preview = $('<div>').addClass 'preview-container'
  preview.append input
  container.append preview
preview = $('<div>').addClass 'preview-container'
input = $("<input type='file' id='f1' name='user[f1]'>")
preview.append input
input = $("<input type='file' id='l1' name='photo[l2]'>")
preview.append input
container.append preview

最新更新