Value of optional type 'URL?' must be unwrapped to a value of type 'URL'
这个报错是因为定义错了可选类型:如下图:
coursesJsonURL 是可选类型,需要使用可选绑定的方法 if let 定义
Value of optional type 'URL?' must be unwrapped to a value of type 'URL'
这个报错是因为定义错了可选类型:如下图:
coursesJsonURL 是可选类型,需要使用可选绑定的方法 if let 定义