通过切换窗格来获取该值 [英] Get the vale by toggling a pane

查看:56
本文介绍了通过切换窗格来获取该值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于

For a



使用该文档。 getElementById('segmentPane'),我可以查看这个对象属性。我想动态设置其open =true或false。有> 100个属性。获取'open'属性然后设置其值的方法是什么?谢谢。

Using the document.getElementById('segmentPane'), I can view this object properties. I want to dynamically set its open="true" or "false". There are > 100 attributes. What's the method to get the 'open' attribute and then set its value? Thanks.

推荐答案

var el = document.getElementById('segmentPane');
el.open = true;


这篇关于通过切换窗格来获取该值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆