鸿蒙系统怎么控制家电,只要碰一碰 鸿蒙OS 2.0控制家电产品方法酷炫

9月10日,华为HDC正式召开并发布饿了鸿蒙OS 2.0版本,作为全场景布局的鸿蒙OS,控制家电是必不可少的一点。华为宣布未来九阳、美的以及老板电器将会支持鸿蒙OS 2.0,实现华为手机的轻松控制。

9月10日,华为HDC正式召开并发布了鸿蒙OS 2.0版本,作为全场景布局的鸿蒙OS,控制家电是必不可少的一点。华为宣布未来九阳、美的以及老板电器将会支持Hilink生态,实现华为手机的轻松控制。

fa28df7722072b2eba2dac1a0e2b5e82.png

华为手机与支持Hilink生态的家电设备操控方式主要依靠碰一碰的方式,只需要轻轻一碰手机端就可以出现该设备的操控界面,比如烤箱会出现各式各样的菜单,只要选择对应菜单之后,烤箱就会按照步骤进行自动烹饪,烹饪完成时会在手机或者手表等其他移动终端提醒用户。而冰箱、风扇等操控方式也是依靠碰一碰来实现,可以对温度、风量进行操控。

0b73aeced3a13f22f050ac1e9bd53637.png

2503a74c779a3e899522864524479d81.png

ebc88018ea6e27884bb6993cf719d0d9.png

80e61c52d479e05e4634ea4526bf355d.png

448bb1987a37df1023feec82269af5c7.png

对于那些不方便靠近触碰的设备,用户可以在手机主页底端向上滑动呼出IoT控制页面,以此来对家里的IoT设备进行控制,终端优先级别非常高,这也是未来1+8+N战略必不可少的一个重要环节。

f563c30d58c766f93837cab71a882a92.png

未来将会有更多的家电品牌加入到Hilink生态的分布式操作之中,也将会为消费者提供更为便利的体验。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
代码如下: ```html <!DOCTYPE html> <html> <head> <title>随机点名</title> <style type="text/css"> body { background-color: #f1f1f1; font-family: Arial, sans-serif; font-size: 16px; } h1 { text-align: center; margin-top: 50px; } .btn-container { display: flex; justify-content: center; margin-top: 50px; } .btn { background-color: #4CAF50; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-right: 10px; } .btn:hover { background-color: #3E8E41; } .input-container { display: flex; justify-content: center; margin-top: 50px; } .input { padding: 10px; border-radius: 5px; border: none; margin-right: 10px; width: 100px; text-align: center; } .result-container { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 50px; } .result { background-color: #ddd; padding: 10px; border-radius: 5px; margin: 10px; font-weight: bold; text-align: center; width: 100px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: all 0.2s ease-in-out; } .result:hover { background-color: #bbb; } .result.selected { background-color: #4CAF50; color: white; } </style> </head> <body> <h1>随机点名</h1> <div class="btn-container"> <button class="btn" onclick="start()">开始</button> <button class="btn" onclick="stop()">停止</button> <button class="btn" onclick="reset()">重置</button> </div> <div class="input-container"> <label>概率(%):</label> <input type="number" class="input" min="0" max="100" value="50" oninput="setProbability()"> </div> <div class="result-container"> <div class="result"></div> </div> <script type="text/javascript"> var intervalId; var probability = 50; var selected = null; function start() { if (!intervalId) { intervalId = setInterval(selectRandom, 100); } } function stop() { if (intervalId) { clearInterval(intervalId); intervalId = null; selected.classList.add('selected'); } } function reset() { if (intervalId) { clearInterval(intervalId); intervalId = null; } selected = null; document.querySelectorAll('.result').forEach(function(result) { result.classList.remove('selected'); }); } function setProbability() { probability = parseInt(document.querySelector('.input').value); } function selectRandom() { document.querySelectorAll('.result').forEach(function(result) { result.classList.remove('selected'); }); var random = Math.floor(Math.random() * 100); if (random < probability) { selected = document.querySelectorAll('.result')[Math.floor(Math.random() * document.querySelectorAll('.result').length)]; } } document.querySelectorAll('.result').forEach(function(result) { result.addEventListener('click', function() { if (selected === result) { result.classList.remove('selected'); selected = null; } else { document.querySelectorAll('.result').forEach(function(result) { result.classList.remove('selected'); }); result.classList.add('selected'); selected = result; } }); }); </script> <script type="text/javascript"> var names = ['张三', '李四', '王五', '赵六', '孙七', '周八', '吴九', '郑十']; for (var i = 0; i < 8; i++) { document.querySelectorAll('.result')[i].innerHTML = names[i]; } </script> </body> </html> ``` 效果如下: ![随机点名](https://i.loli.net/2021/08/01/rjKlS1CvL7bJxkW.png)

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值