![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
harmonyOS
hamimelon2020
这个作者很懒,什么都没留下…
展开
-
还是没能解决这个错误bug
ERROR: Unknown host 'artifactory.cde.huawei.com: nodename nor servname provided, or not known'. You may need to adjust the proxy settings in Gradle.Enable Gradle 'offline mode' and sync projectLearn about configuring HTTP proxies in Gradle原创 2021-01-28 14:18:52 · 367 阅读 · 0 评论 -
tab导航切换代码
<!-- xxx.hml --><div class="container"> <tabs class = "tabs" index="0" vertical="false" οnchange="change"> <tab-bar class="tab-bar" mode="fixed"> <text class="tab-text">Home</text> &l原创 2021-01-28 13:54:38 · 166 阅读 · 0 评论 -
按钮和图片切换的代码
<!-- xxx.hml --><div class="container"> <swiper class="swiper" id="swiper" index="0" indicator="true" loop="true" digital="false"> <div class = "swiperContent" > <text class = "text" value="First screen"&原创 2021-01-28 13:51:19 · 134 阅读 · 0 评论 -
list 代码 todolist的写法,疑问,怎么自动添加新的todolist呢,怎么自动添加新的image呢,管理后台怎么衔接呢?
<!-- index.hml --><div class="container"> <list class="todo-wraper"> <list-item for="{{todolist}}" class="todo-item"> <text class="todo-title">{{$item.title}}</text> <text class="t原创 2021-01-28 13:37:45 · 82 阅读 · 0 评论 -
三张图片间歇性展示的代码
<!-- index.hml --><div class="container"> <image-animator class="image-player" ref="animator" images="{{images}}" duration="10s" onclick="handleClick"></image-animator></div>// index.jsexport default { data: {原创 2021-01-28 13:26:27 · 151 阅读 · 0 评论 -
button的实现代码
<!-- index.hml --><div class="container"> <input type="button" class="button" value="Button"></input></div>/* index.css */.button:active { background-color: #FF0000;/*按钮被激活时,背景颜色变为#888888 */}...原创 2021-01-26 21:55:20 · 770 阅读 · 1 评论 -
居然找到了一个bug,分号改成逗号就对了,分号的时候是一样颜色的蓝色,逗号的时候是正常的,标题红,正文蓝
<!-- 页面布局xxx.hml --><div id="containerId" class="container"> <text id="titleId" class="title">标题</text> <div class="content"> <text id="contentId">内容</text> </div></div>/* 页面样式xx原创 2021-01-26 21:50:36 · 226 阅读 · 0 评论 -
经过验证的鸿蒙添加显示图片的代码
<div class="right-container"> <image class="img" src="{{middleImage}}"> </image></div>.right-container { width: 432px; justify-content: center;}.img { margin-top: 10px; object-fit: contain;; height:原创 2021-01-26 20:26:45 · 1294 阅读 · 0 评论 -
一个JS代码范本,经过验证成功
export default { data: { headTitle: 'Capture the Beauty in This Moment', paragraphFirst: 'Capture the beauty of light during the transition and fusion of ice and water. At the instant of movement and stillness, softness and rigidity, fo原创 2021-01-26 14:59:15 · 78 阅读 · 0 评论 -
在Sublime Text里把JS代码整理了一下,终于显示成功了,JS代码语法是有缩进的吗?可是图片似乎还没成功
原创 2021-01-26 14:53:04 · 118 阅读 · 0 评论 -
鸿蒙电商图片html、css、js代码
<div class="container"><div class="title-section"><div class="title"><text class="name">Food</text><text class="sub-title">Choose What You Like</text></div> </div><div><swiper id="swiper原创 2021-01-26 14:16:56 · 362 阅读 · 0 评论 -
gradle官方下载地址
https://services.gradle.org/distributions/原创 2021-01-26 12:44:15 · 928 阅读 · 0 评论 -
这个图片的引用为什么不成功
<div class="container"> <div class="header" onclick="exitApp"> <image class="back" src="/Users/ivyone/DevEcoStudioProjects/MyApplication2/entry/src/main/resources/base/media/90.jpg"></image> <text class="title原创 2021-01-26 10:14:09 · 197 阅读 · 0 评论 -
ERROR: Unknown host ‘artifactory.cde.huawei.com: nodename nor servname provided, or not known‘的解决办法
ERROR: Unknown host 'artifactory.cde.huawei.com: nodename nor servname provided, or not known'. You may need to adjust the proxy settings in Gradle.Enable Gradle 'offline mode' and sync projectLearn about configuring HTTP proxies in Gradlehttp://www.7原创 2021-01-23 23:33:29 · 818 阅读 · 0 评论 -
mark,鸿蒙
https://edu.51cto.com/course/26405.html?hm原创 2021-01-22 22:32:06 · 122 阅读 · 0 评论 -
鸿蒙代码你好世界保存
export default { data: { title: "" }, onInit() { this.title = this.$t('strings.world'); }, changeTitle() { this.title += this.$t('strings.clickme') }}<div class="container"> <text class="titl原创 2021-01-12 11:13:26 · 506 阅读 · 0 评论 -
gradle下载不下来,把原链接换成阿里云的链接,就好了
distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distsdistributionUrl=https://code.aliyun.com/kar/gradle-all-zip/raw/master/gradle-6.3-all.zipzipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/dists原链接忘了原创 2021-01-07 13:26:23 · 685 阅读 · 0 评论 -
借助阿里云下载gradle,飞快,外网原链接下载不下来,超时,试了很多次下载慢到不能成功
[https://code.aliyun.com/kar/gradle-all-zip/raw/master/gradle-6.3-all.zip](https://code.aliyun.com/kar/gradle-all-zip/raw/master/gradle-6.3-all.zip)外网原链接原创 2021-01-07 12:56:26 · 580 阅读 · 0 评论