javascript如何使用textContent属性

2024-10-13 10:21:41

1、创建一个名称为 textContent的html文件

javascript如何使用textContent属性

3、添加一p标签,设置id 为 showtextContent

javascript如何使用textContent属性

5、在自定义函数中获取button对象,用mytextContent获取button的文本内容

javascript如何使用textContent属性
猜你喜欢