面向对象中(instanceof的使用)

  • Post author:
  • Post category:其他

强制转换:使用多态性时,无法调用子类特有方法,可以强制转换 Person person=new Student(); Student student=(Student) person;//强制转换 student.study;//study(Student类特有方法) 使用强制转换时,可能出现ClassCastExpection的异常。 Teacher teacher=(Teacher)perso…

继续阅读 面向对象中(instanceof的使用)

如何使用UE4实现城市交通环境的仿真

  • Post author:
  • Post category:其他

在 Unreal Engine 4 (UE4) 中实现城市交通环境的仿真,可以通过以下步骤来实现: 建模:使用 UE4 的内置工具或第三方插件,建立城市地图模型,包括道路、建筑物、树木等。 设置路线:使用 UE4 的 AI 路径系统,为交通工具(如汽车、自行车等)设置路径,并且控制它们的速度和方向。 添加交通灯:使用 UE4 的材质系统,添加交通灯并设置其闪烁频率,以模拟实际城市环境中的交通灯。 …

继续阅读 如何使用UE4实现城市交通环境的仿真

vue 对接融云webIM(基于element-ui)

  • Post author:
  • Post category:vue

简单介绍下,我直接在vue引入jquery,我写的还不足,代码比较冗余,但是可以正常使用,欢迎大家提出意见 一、首先我是查找融云的是否有关于vue代码,但是官网提供是Web IM SDK 相关,以下是连接 https://www.rongcloud.cn/docs/open_source.html 二、我要在element-ui框架使用,在index.html引入, 其次也要在线上做下处理,在st…

继续阅读 vue 对接融云webIM(基于element-ui)

React中的CSS——styled-components

  • Post author:
  • Post category:其他

一、认识CSS in JS 实际上,官方文档也有提到过CSS in JS这种方案: https://zh-hans.reactjs.org/docs/faq-styling.html “CSS-in-JS” 是指一种模式,其中 CSS 由 JavaScript 生成而不是在外部文件中定义; 注意此功能并不是 React 的一部分,而是由第三方库提供。 React 对样式如何定义并没有明确态度; 在…

继续阅读 React中的CSS——styled-components

SpringSecurity与Redis(分解与整合)

  • Post author:
  • Post category:其他

一、SpringSecurity SpringSecurity是一个强大且高效的安全框架,能够提供用户验证和访问控制服务,能够很好地整合到以Spring为基础的项目中。SpringBoot对SpringSecurity进行了大量的自动配置,使开发者通过少量的代码和配置就能完成很强大的验证和授权功能,下面我们就体验下SpringSecurity的基本使用。 引入依赖:引入spring securit…

继续阅读 SpringSecurity与Redis(分解与整合)

js动态修改浏览器导航栏图标和文字

  • Post author:
  • Post category:其他

change_icon() { const changeFavicon = link => { let $favicon = document.querySelector('link[rel="icon"]'); // If a <link rel="icon"> element already exists, // change its href to the given li…

继续阅读 js动态修改浏览器导航栏图标和文字

beego框架总结

  • Post author:
  • Post category:其他

0、为什么选择beego框架? Beego 框架是 go 语言开发的 web 框架(有go语言基础,能很快上手) 。 go 语言的 web 框架: beego,gin,echo 等等,那为什么我们选择 beego 呢? 第一, beego 是中国人开发的,开发文档比较详细, beego 官网网址 : https://beego.me/ 。第二,现在公司里面用 beego 的也比较多,比如今日头条,…

继续阅读 beego框架总结

报错com.netflix.client.ClientException: Load balancer does not have available server for client: xxx解决

  • Post author:
  • Post category:其他

报错信息com.netflix.client.ClientException: Load balancer does not have available server for client: APPLICATIONSERVICE 首先网上大多说是添加配置: ribbon: eureka: enabled: true 我的并没有任何反应; 我的是因为多添加了配置: eureka: client: …

继续阅读 报错com.netflix.client.ClientException: Load balancer does not have available server for client: xxx解决

用python打包小程序

  • Post author:
  • Post category:python

在vscode,python环境下,将代码打包 下载用于打包文件的扩展包: pip install pyinstaller 然后得到: 用这个扩展包打包文件  f1.py pyinstaller -F f1.py 打包成功,可以在 f1.py 所在文件夹找到dist文件夹,里面有exe文件,点击即可运行 运行后发现程序运行后迅速结束,于是import 一个包: from time import s…

继续阅读 用python打包小程序

【问题】Cannot read properties of undefined (reading ‘map‘)

  • Post author:
  • Post category:其他

百度后看了两篇文章添加?解决了 设计 可选链式操作符 相关知识 文章链接 Cannot read properties of undefined (reading ‘map‘)_柳青留墨的博客-CSDN博客 Cannot read properties of undefined (reading ‘map‘)_小猪2333的博客-CSDN博客 版权声明:本文为weixin_44003939原创文章…

继续阅读 【问题】Cannot read properties of undefined (reading ‘map‘)