会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
个人备忘录~
-----------因为菜,所以努力
博客园
首页
新随笔
订阅
管理
2020年4月22日
TS中readonly的设置方法
摘要: 动态设置readonly的方法 document.getElementById(`test`).setAttribute('readonly','true'); document.getElementById(`test`).removeAttribute('readonly'); 不能使用 set
阅读全文
posted @ 2020-04-22 16:42 白小江
阅读(1549)
评论(0)
推荐(0)
编辑
公告