上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 87 下一页
摘要: **报错502** ![](https://img2023.cnblogs.com/blog/1987782/202306/1987782-20230602105805322-166804436.png) 这里可以发现远程访问的地址与访问的地址ip不一致 ![](https://img2023.cn 阅读全文
posted @ 2023-06-02 11:01 槑孒 阅读(126) 评论(0) 推荐(0)
摘要: ## 问题 create-react-app默认端口号是3000,当有的别的项目占用该端口号时 自己想使用别的端口号时 ## 方法 ### 1、更改node_modules a. 依次打开`“node_modules”—“react-scripts”—“scripts”`文件夹,找到并打开start 阅读全文
posted @ 2023-06-01 23:24 槑孒 阅读(1565) 评论(0) 推荐(0)
摘要: **初始化基础的项目** ``` npm install -g create-react-app create-react-app my-app cd my-app npm start ``` ![](https://img2023.cnblogs.com/blog/1987782/202306/1 阅读全文
posted @ 2023-06-01 23:07 槑孒 阅读(31) 评论(0) 推荐(0)
摘要: 在使用 setup() 语法糖时,方法的定义和 watch 的调用都在 setup内部进行。 需要确保方法在 watch 调用之前可访问。 **错误示例** ```html ``` 这个时候,会报错`Uncaught (in promise) ReferenceError: Cannot acces 阅读全文
posted @ 2023-05-26 10:51 槑孒 阅读(1159) 评论(0) 推荐(0)
摘要: **问题描述** 在tsconfig.json文件里types字段添加"element-plus/global"后出现报错。 **问题原因** TS升级到5.x带来的规范性问题。可以通过npm view typescript version命令查看下你的TS版本。 ![](https://img20 阅读全文
posted @ 2023-05-24 22:55 槑孒 阅读(1020) 评论(0) 推荐(0)
摘要: ```json // tsconfig.json { ... "compilerOptions": { // noUnusedLocals 设置为 false "noUnusedLocals": false, } } ``` 阅读全文
posted @ 2023-05-24 22:50 槑孒 阅读(472) 评论(0) 推荐(0)
摘要: 在项目根目录或 src 文件夹下创建一个后缀为 .d.ts 的文件,并写入以下内容: ```ts declare module "*.vue" { import { App, defineComponent } from "vue"; const component: ReturnType & { 阅读全文
posted @ 2023-05-24 21:59 槑孒 阅读(194) 评论(0) 推荐(0)
摘要: 在Cesium中,加载影像图层主要通过ImageryLayer、ImageryProvider和ImageryLayerCollection三个类来实现;首先我们先来认识下这三个类 # 一、ImageryLayer类 在Cesium中,使用`ImageryLayer`对象来表示一个影像图层。`Ima 阅读全文
posted @ 2023-05-24 11:10 槑孒 阅读(2968) 评论(0) 推荐(0)
摘要: **GeoJSON格式** GeoJSON是一种常用的基于JavaScript对象表示法(JSON)的地理数据交换格式。GeoJSON支持诸如点、线、面和多边形等地理要素的表示,并且可以和矢量数据结构相互转换。 在Cesium中,使用`Cesium.GeoJsonDataSource.load()` 阅读全文
posted @ 2023-05-24 10:35 槑孒 阅读(1869) 评论(0) 推荐(0)
摘要: 使用`Cesium的viewer.camera.flyTo`方法将相机定位到指定的位置,并设置相机的方向和倾斜角。 ```js viewer.camera.flyTo({ //摄像机在 WGS84(世界)中的最终位置坐标或从自上而下的视图中可以看到的矩形 destination: Cesium.Ca 阅读全文
posted @ 2023-05-24 10:07 槑孒 阅读(2952) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 87 下一页