草庐IT

open-vm-tools

全部标签

js 通过window.open(url)下载文件,修改文件名

通过window.open(url)下载文件(xlsx、xls、zip等格式文件),如果前端想要自定义更改下载时的文件名,可以使用以下方法//下载文件,自定义文件名称exportfunctiondownFile(url,fileName){constx=newXMLHttpRequest()x.open('GET',url,true)x.responseType='blob'x.onload=function(){consturl=window.URL.createObjectURL(x.response)consta=document.createElement('a')a.href=url

解决python安装包需要Microsoft C++ Build Tools问题

python在安装一些需要从C源码编译的包的时候会报错说你没有MicrosoftVisualC++14.0或者更高版本。error:MicrosoftVisualC++14.0orgreaterisrequired.Getitwith"MicrosoftC++BuildTools":https://visualstudio.microsoft.com/visual-cpp-build-tools/如果不想安装庞大的VS,可以选择只安装编译器组件MicrosoftC++BuildTools。我去网上给找了一圈,发现在线安装包都不可用,会显示安装包损坏,挂梯子也没用,查了一下外国论坛好像需要导入证

flutter - 警告 : the 'flutter' tool you are currently running is not the one from the current directory

运行Flutterdoctor会产生警告。警告:您当前运行的“flutter”工具不是来自当前目录:运行Flutter:/home/franklin/flutter/flutter当前目录:/home/franklin/flutter当您安装了多个flutter副本时,可能会发生这种情况。请检查您的系统路径以验证您正在运行预期的版本(运行'flutter--version'以查看您的路径上有哪个flutter)。但是我没有安装多个flutter副本。还有什么原因导致此错误? 最佳答案 问题出在您的fluttersdk路径上。您需要设

flutter - 警告 : the 'flutter' tool you are currently running is not the one from the current directory

运行Flutterdoctor会产生警告。警告:您当前运行的“flutter”工具不是来自当前目录:运行Flutter:/home/franklin/flutter/flutter当前目录:/home/franklin/flutter当您安装了多个flutter副本时,可能会发生这种情况。请检查您的系统路径以验证您正在运行预期的版本(运行'flutter--version'以查看您的路径上有哪个flutter)。但是我没有安装多个flutter副本。还有什么原因导致此错误? 最佳答案 问题出在您的fluttersdk路径上。您需要设

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“

在window端的anaconda虚拟环境中,想要安装mmdet出现了这个问题,完整的错误如下所示:Buildingwheelsforcollectedpackages:pycocotoolsBuildingwheelforpycocotools(pyproject.toml)...errorerror:subprocess-exited-with-error×Buildingwheelforpycocotools(pyproject.toml)didnotrunsuccessfully.│exitcode:1╰─>[16linesofoutput]runningbdist_wheelrunn

uni-app 微信小程序 支付宝小程序(alipay) 百度小程序(baidu),预览pdf(链接和base64) 及下载(仅微信),window.open uni.downloadFile

废话不多说直接上代码吧之前搜了一大堆有的没的,最终还是小伙伴巴拉文档一起找到的方案(离不开小伙伴的帮助,自己总容易陷入死局,在此鸣谢疾风李青!);想起个事:一定要给这些路径的域名配到相应的开发管理上,其他平台不过多赘述了首先是预览,由于我这里是uni-app框架开发三端,所以展示内容开头以uni为主:如果你的dpf是链接形式形如:https://,那么下面方案适合你(该方案,是小程序中的window.open的实现。)支付宝不同机型调用uni.downloadFile发现会发现有多种形式的文件路径,因此条件编译一下(纯他么坑爹)consttimes=newDate().getTime();le

《MySQL系列-部署维护》MySQL启动异常:error while loading shared libraries: libncurses.so.5: cannot open shared...

MySQL启动时出现如下日常:提示加载不到libncurses.so.5[root@kafka01bin]#./mysql-uroot-p./mysql:errorwhileloadingsharedlibraries:libncurses.so.5:cannotopensharedobjectfile:Nosuchfileordirectory方法一:yum安装libncurses.so.5(失败)但是使用yum安装后,下载的libncurses.so.5在/usr/lib目录下,再次启动MySQL的时候还是会提示加载不到[root@kafka01bin]#yuminstalllibncur

ulimit: open files: cannot modify limit: Operation not permitted

问题描述-bash:ulimit:openfiles:cannotmodifylimit:Operationnotpermitted解决方法1:直接修改limits.conf配值文件,且使得永久生效vim/etc/security/limits.conf在末尾添加以下内容smissoftnproc16384smishardnproc16384smissoftnofile65536smishardnofile65536smissoftmemlock4000000smishardmemlock4000000再次切换到smis用户,未出现之前的错误提示。配值后建议重启一下服务器。解决方法2:使用ul

gradle - 找不到 lint-gradle-api.jar (com.android.tools.lint :lint-gradle-api:26. 1.2) flutter 项目

我有一个lint-gradle-api.jar错误,我在论坛上查看了其他类似的问题,但我仍然有问题。有人有想法吗?ErrorrunningGradle:Exitcode1from:C:\Users\bgbra\Documents\Flutter_apps\flutter_app\android\gradlew.batapp:properties:ProjectevaluationfailedincludinganerrorinafterEvaluate{}.Runwith--stacktracefordetailsoftheafterEvaluate{}error.FAILURE:Bu

gradle - 找不到 lint-gradle-api.jar (com.android.tools.lint :lint-gradle-api:26. 1.2) flutter 项目

我有一个lint-gradle-api.jar错误,我在论坛上查看了其他类似的问题,但我仍然有问题。有人有想法吗?ErrorrunningGradle:Exitcode1from:C:\Users\bgbra\Documents\Flutter_apps\flutter_app\android\gradlew.batapp:properties:ProjectevaluationfailedincludinganerrorinafterEvaluate{}.Runwith--stacktracefordetailsoftheafterEvaluate{}error.FAILURE:Bu