vue
少年啦1997
菜鸟
展开
-
openlayers6 使用ol.map>ol.view center属性无效及解决方案
openlayers6 使用ol.map>ol.view center属性无效及解决方案原因分析:原因分析:The initial center for the view. If a user projection is not set, the coordinate system for the center is specified with the projection option. Layer sources will not be fetched if this is not set原创 2020-10-09 23:18:35 · 2539 阅读 · 2 评论 -
vue中provide和inject的用法
provide#injectprovide应该是对象或返回一个对象的函数。该对象可注入其子孙的属性。inject应该是:一个字符串数组或一个对象,对象的 key 是本地的绑定名,value 是:在可用的注入内容中搜索用的 key (字符串或 Symbol),或一个对象,该对象的:from属性是在可用的注入内容中搜索用的 key (字符串或 Symbol)default属性是降...原创 2020-04-22 10:26:23 · 672 阅读 · 0 评论