Swift错误消息:“类型'city'的值没有成员'id'

时间:2018-08-24 00:30:05

标签: swift types member guard

我已经建立了下面的代码和变量'cityId',但出现错误:“类型'city'的值没有成员'id'。我们将提供任何帮助。代码错误以粗体显示。 / p>

$("#pdf_file").fileinput({
  theme: "fa",
  allowedFileExtensions: ["pdf"],
  maxFileCount: 1,
  showUpload: false,
  showCaption: false,
  overwriteInitial: true,
  fileType: "pdf",
  browseClass: "btn btn-primary btn-md",
  initialPreview: [                 
   "http://localhost/local_storage/aPxU3p71hpLjaI3lbTXrjRuigUxU94pq.pdf",
  ],
  initialPreviewAsData: true,
  initialPreviewConfig: [
    {type: "pdf", size: "100%", width: "100%", key: 1},
  ],
 });

0 个答案:

没有答案