草庐IT

current_index

全部标签

wx:for wx:for-item wx:for-index wx:for-key

wx:forwx:for-itemwx:for-indexwx:for-key使用wx:for语法wx:for-itemwx:for-indexwx:for-keydata-*wx:for语法小程序中列表渲染时,使用wx:for控制属性,来绑定一个数组,绑定后,即可使用数组中各项的数据,来渲染该组件。例子如下://array=[//{name:zs,age:18},//{name:lisi,age:18}//]{array}}">{{item.name+item.age}}wx:for-itemwx:for-item,数组当前项的变量名,默认为item作用:使用(当前项变量名.属性名)取得属性

解决 Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

最近稍微有点空,就新建了一个工程打算捣鼓点新的东西。新建完一个新的工程之后,发现assembleRelease,包括编译都报错了,具体报错的信息如下*Whatwentwrong:Anexceptionoccurredapplyingpluginrequest[id:'com.android.application']>Failedtoapplyplugin'com.android.internal.application'.>AndroidGradlepluginrequiresJava11torun.YouarecurrentlyusingJava1.8.Youcantrysomeofthe

解决 Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

最近稍微有点空,就新建了一个工程打算捣鼓点新的东西。新建完一个新的工程之后,发现assembleRelease,包括编译都报错了,具体报错的信息如下*Whatwentwrong:Anexceptionoccurredapplyingpluginrequest[id:'com.android.application']>Failedtoapplyplugin'com.android.internal.application'.>AndroidGradlepluginrequiresJava11torun.YouarecurrentlyusingJava1.8.Youcantrysomeofthe

解决Vue报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location

问题描述:重复点击导航时,控制台出现报错,虽然不影响功能使用,但也不能坐视不管。解决Vue重复点击相同路由,出现Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigation问题.报错内容:Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigationtocurrentlocation:"/home".浏览器控制台·报错截图:解决方案:方案一:只需在router文件夹下,添加如下代码://src/router/index.jsVue.use(Router)

解决Vue报错:Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location

问题描述:重复点击导航时,控制台出现报错,虽然不影响功能使用,但也不能坐视不管。解决Vue重复点击相同路由,出现Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigation问题.报错内容:Uncaught(inpromise)NavigationDuplicated:Avoidedredundantnavigationtocurrentlocation:"/home".浏览器控制台·报错截图:解决方案:方案一:只需在router文件夹下,添加如下代码://src/router/index.jsVue.use(Router)

【ES报错】Unable to parse response body for Response{requestLine=PUT /index/_doc...HTTP/1.1 201 Created}

大家好,我是老坛。 今天跟大家交流一个ES常见问题及解决方法。错误发生场景我引入ES的方式是使用的springbootstarter:org.springframework.bootspring-boot-starter-data-elasticsearch然后springboot的版本为:2.3.4.RELEASE贴一下报错来源代码:@SpringBootTest@RunWith(SpringRunner.class)publicclassESTest{@ResourceRestHighLevelClientrestHighLevelClient;Stringindex="index";@T

【ES报错】Unable to parse response body for Response{requestLine=PUT /index/_doc...HTTP/1.1 201 Created}

大家好,我是老坛。 今天跟大家交流一个ES常见问题及解决方法。错误发生场景我引入ES的方式是使用的springbootstarter:org.springframework.bootspring-boot-starter-data-elasticsearch然后springboot的版本为:2.3.4.RELEASE贴一下报错来源代码:@SpringBootTest@RunWith(SpringRunner.class)publicclassESTest{@ResourceRestHighLevelClientrestHighLevelClient;Stringindex="index";@T

【微信小程序】微信开发者工具 引用 vant-weapp时“miniprogram/node_modules/@babel/runtime/index.js: 未找到npm包入口文件” 解决办法

一、前言👁在微信小程序开发时必不可少需要引入外部组件库引,今天在用vant组件库时遇到了“找不到npm包入口文件”,怎么办?二、使用vant组件库步骤1.打开微信开发者工具终端npmi2.安装vant组件库npmi@vant/weapp-S--production3.回到小程序开发工具里面顶部导航栏->工具->构建npm然后就出现了报错,npm无法构建…出现这种情况的两种原因1.删除文件的时候没有删除干净2.执行npmi的时候自己输入了一些配置信息导致报错三、解决第一种1、先把package-lock.json,node_modules,miniprogram_npm都删干净。2、打开终端,执

【微信小程序】微信开发者工具 引用 vant-weapp时“miniprogram/node_modules/@babel/runtime/index.js: 未找到npm包入口文件” 解决办法

一、前言👁在微信小程序开发时必不可少需要引入外部组件库引,今天在用vant组件库时遇到了“找不到npm包入口文件”,怎么办?二、使用vant组件库步骤1.打开微信开发者工具终端npmi2.安装vant组件库npmi@vant/weapp-S--production3.回到小程序开发工具里面顶部导航栏->工具->构建npm然后就出现了报错,npm无法构建…出现这种情况的两种原因1.删除文件的时候没有删除干净2.执行npmi的时候自己输入了一些配置信息导致报错三、解决第一种1、先把package-lock.json,node_modules,miniprogram_npm都删干净。2、打开终端,执

【解决方案】Collecting package metadata (current_repodata.json): failed

文章目录前言问题描述解决方案小结参考文献前言创作开始时间:2022年11月17日14:28:51如题,在运行condainstallpylint的时候碰到了这样的错误,这里探究一下解决方案。问题描述在cmd下运行:condainstallpylint-y,报错如下:C:\Users\apr>condainstall--nameaprpylint-yCollectingpackagemetadata(current_repodata.json):failedCondaHTTPError:HTTP000CONNECTIONFAILEDforurlhttps://mirrors.tuna.tsing