logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

uniapp使用websocket通信

简要记录uni-app中使用websocket进行通信1. 初始化定义全局变量webSocketTask: {}onLoad()中使用uni.connectSocket建立websocket长链接this.webSocketTask = uni.connectSocket({url: common.wsUrl() + ':8082/websocket/' + this.userId,success

#uni-app#websocket
Could not GET ‘https://maven.aliyun.com/repository/public/com/android/tools/build/gradle/4.2.2/gradl

rebuild后可以正常运行,出现这个问题的原因很多,可能是网络问题 开了热点,远程库http不可用,gradle版本问题,曾一度以为的被墙的原因,这个代理配置容易被忽略。android studio 同步 Gradle Sync时异常,原因之一是因为gradle设置了代理导致无法访问资源库,打开C:\Users\xxxx\.gradle下的gradle.properties,注释掉代理相关配置,

#android
vue element-ui直接全屏展示大图

已添加elementUI,先引入组件:import ElImageViewer from 'element-ui/packages/image/src/image-viewer.vue'添加展示大图的控件元素:<el-image-viewerv-if="showViewer":on-close="closeViewer":url-list="picLis

vue中使用cube-ui的Index-List

需求中有个页面是带导航的List列表,想来这么常见的需求定会有轮子可用,找了一通发现滴滴的开源库cube-ui实现了此功能,但在集成使用的过程中也遇到了一些问题,在此记录。错误信息:These relative modules were not found:./cubeic.ttf in ./node_modules/css-loader??ref–11-oneOf-3-1!./nod...

The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11

vue createmyproject:error default-gateway@5.0.5: The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11.4"error Found incompatible module.引擎与该模块不...

Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.

在安装crosswalk之后build不成功,错误信息:Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.    > Could not resolve..Failed to list versions for org.xwalk:xwalk_core_library.参考:http

android edittext设置inputType=“textPassword“后,英文字符hint字体改变

登录页面输入帐号密码,通常会有hint提示,若有英文字符,设置了inputType="textPassword"的字体明显不同。解决方法:在控件初始化后,设置edittext的字体为常规即可:passwordEt.setTypeface(Typeface.DEFAULT);要注意,如果在代码中动态设置了edittext的InputType.TYPE_TEXT_VARIATION_PASSWORD

vue axios跨域异常 Access-Control-Allow-Origin wildcard '*' mode is include withCredentials attribute

vue在request时错误信息如下,做此记录:Access to XMLHttpRequest at 'http://192.168.0.103:8080/user/userLogin' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request does..

android WebView加载视频只有声音没有画面

检查AndroidManifest中application节点是否有次配置android:hardwareAccelerated="false"

#android
Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined.原因:如果应用以 An

#android#android studio
到底了