华为开发者 专注于Harmony OS openharmony 鲲鹏 昇腾 网络安全
私信
主帖 16
回帖 10
视频
提问
回答 6
资源 11
专栏
HTML5axios天气查询html5编写界面weather搜索北京上海广州深圳芜湖枣庄{{item.type}}{{item.low}}{{item.high}}{{item.date}}css代码body{fontfamily:'MicrosoftYaHei';}.wrap{position:fixed;left:0;top:0;width:100%;height:100%;background:fff;}.searchform{width:640px;margin:100pxauto0;}.logo{textalign:center;}.formgroup{width:640px;height:40px;margintop:45px;}.inputtxt{boxsizing:borderbox;width:540px;height...
6天前 322浏览 0点赞 0回复 0收藏
BearPiNano智慧农业onenet可视化大屏
2022-05-11 11:19:26 1208浏览 1点赞 0回复 0收藏
1.下载鸿蒙BearPiHMMicrosmall官方镜像;[提取码:1234](https:pan.baidu.coms1W0cgtXC5T2bv0lAya7eizA)2.获取源码:创建文件夹:mkdirproject打开文件夹:cdproject输入下列命令行:gitclonehttps:gitee.combearpibearpihmmicrosmall.git等待源码下载。3.源码编译输入打开源码目录文件夹:cdhomebearpiprojectbearpihmmicrosmall输入:hbset在输入:.按enter输入命令行:hbbuildtnotestteef等待编译成功.4.在project\bearpihmmi...
2022-03-17 15:47:37 1136浏览 1点赞 0回复 0收藏
小熊派护花使者想要实现自动浇水应该怎样改代码?
2022-03-05 21:49:15 2000浏览 1点赞 1回复 0收藏
2021-12-15 11:53:48 2139浏览 0点赞 0回复 0收藏
1.publicclassMainAbilitySliceextendsAbilitySliceimplementsComponent.ClickedListener{Texttext;Buttonbutton;OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setUIContent(ResourceTable.Layoutabilitymain);拿到ButtonText按钮text(Text)findComponentById(ResourceTable.Idtext);button(Button)findComponentById(ResourceTable.Idbut1);设置点击方法button.setClickedListener(this);}Overridepu...
2021-11-02 13:58:40 1257浏览 2点赞 0回复 0收藏
1.abilitymain.xml2.MainAbilitySlicepublicclassMainAbilitySliceextendsAbilitySliceimplementsComponent.DoubleClickedListener{Imageimage;OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setUIContent(ResourceTable.Layoutabilitymain);image(Image)findComponentById(ResourceTable.Idimg);获取DirectionalLayout对象DirectionalLayoutdirectionalLayout(DirectionalLayout)findComponentById(Re...
2021-10-28 17:47:52 2304浏览 1点赞 0回复 0收藏
1.在abilitymain.xml2.MainAbilitySlicepublicclassMainAbilitySliceextendsAbilitySliceimplementsComponent.TouchEventListener{Texttext;intcount0;定义一个成员变量,验证touchEvent方法的调用OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setUIContent(ResourceTable.Layoutabilitymain);1.获取布局对象和文本DirectionalLayoutdl(DirectionalLayout)findComponentById(ResourceTable.Iddl);text...
2021-10-28 17:12:04 1964浏览 1点赞 0回复 0收藏
1.创建一个SecondAbilitySlice.java文件publicclassSecondAbilitySliceextendsAbilitySlice{OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setUIContent(ResourceTable.Layoutabilitysecond);创建一个布局对象DirectionalLayoutdirectionalLayoutnewDirectionalLayout(this);创建一个文本对象TexttnewText(this);设置文本内容t.setText("HarmonyOS");设置文字大小t.setTextSize(55);设置文字颜色t.setT...
2021-10-27 17:58:11 2074浏览 3点赞 0回复 1收藏
1.准备win10电脑2.安装乌班图,3.获取openHarmony源码4.获取源码指令:1.hpminittdefalut2.hpmibearpibearpihmnano5.等待源码下载完成。6.编译源码指令hpmdist如果用gitclone获取的源码的话,编译指令为python7.用RaiDrive工具创建一个虚拟磁盘。8.用vscode打开9.在sample目录下创建一个新的文件夹为app,并在app文件夹下创建Hello.c文件和BUILD.gn文件10.在Hello.c文件里编写代码cincludeinclude"ohosinit.h"voidHello(void){p...
2021-10-26 16:46:32 3028浏览 4点赞 0回复 0收藏
JS开发appindexindex.hmlindexindex.js效果图:indexindex.css.container{flexdirection:column;}tvmediascreenand(devicetype:tv){.title{alignitems:flexstart;flexdirection:column;paddingleft:60px;paddingright:160px;margintop:15px;}.name{fontsize:20px;}.subtitle{fontsize:15px;color:7a787d;margintop:10px;}.swiperstyle{height:300px;width:350px;indicatorcolor:4682b4;indicatorselectedcolor:f0e68c;indicator...
2021-10-25 21:55:39 3329浏览 1点赞 1回复 0收藏
1.indexindex.hml{{imageNormal.title}}{{imageSelect.title}}{{frameContainerPhone.title}}{{frameContainerState.title}}2.indexindex.cssimport'....commoncssstyle.css';.container{flexdirection:column;alignitems:center;}.containersondiv{width:100%;height:200px;}.linediv{flexdirection:column;width:50%;height:180px;}.linedivson{flexdirection:column;width:100%;alignitems:center;justifycontent:center;}.t...
2021-10-24 23:12:43 2989浏览 2点赞 0回复 0收藏
1.MainAbilitySlicepackagecom.example.appjava.slice;importcom.example.appjava.ResourceTable;importohos.aafwk.ability.AbilitySlice;importohos.aafwk.content.Intent;importohos.agp.components.Button;importohos.agp.components.Component;importohos.agp.components.Text;publicclassMainAbilitySliceextendsAbilitySlice{OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setUIContent(Resource...
2021-10-24 11:59:55 3988浏览 5点赞 2回复 3收藏
<divclass"container"><divclass"container"id"target"show"{{flagoneFlag}}"><div><swiperid"swiperImage"class"swiperstyle"><imagesrc"{{$item}}"class"imagemode"focusable"true"for"{{imageList}}"><image><swiper><div><searchhint"{{pageWord.v}}"value"{{pageWord.b}}"focusable"true"submit"submitColumn"><search><tabsclass"tabs"index"0"vertical"false"onchange"change"><tabbarclass"tabbar"mode"fixed"><textcla...
2021-06-04 15:07:41 3539浏览 3点赞 2回复 2收藏
玩转鸿蒙bearpihmnano开发板鸿蒙bearpinano教程1第一步安装镜像2.打开终端输入ifconfig,查看IP地址。3.远程连接虚拟机,xshell也可以。MobaXterm自带串口工具。4连接虚拟机5.打开RaiDrive映射软件6.用vscode打开7然后编译文件8烧录到开发板中9使用串口工具查看10将开发板上传到华为云xxBearPiHMNano介绍BearPiHMNano开发板是一块专门为鸿蒙OS设计的鸿蒙OS开发板,板载高度集成的2.4GHzWLANSoC芯片Hi3861,并板载NFC电路及标准...
2021-05-30 15:53:01 5004浏览 0点赞 0回复 0收藏
<divclass"container"><swiperautoplay"true"><imagesrc"{{$item}}"for"{{imageList}}"><image><swiper><div>exportdefault{data:{title:"",imageList:['common1.jpg','common2.jpg','common3.jpg','common4.jpg']},onInit(){this.titlethis.$t('strings.world');},swipeToIndex(index){this.$element('swiperImage').swipeTo({index:index});}}轮播图
2021-05-30 00:18:56 3558浏览 2点赞 1回复 0收藏
获得成就
已积累 1.2w 人气
获得 27 个点赞
获得 6 次收藏