
js操作
穿越的马里奥
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
js操作相关知识(一)
1方法:getAttribute、setAttribute属性:currentStyle、getComputedStyle 方法:getAttribute、setAttribute getAttribute()方法是一个函数。它只有一个参数 —— 你打算查询的属性的名字: object.getAttribute(attribute) 不过,getAttribute()方法不能通过document...转载 2018-12-06 16:14:04 · 174 阅读 · 0 评论 -
JS动态引入相对路径的CSS文件
JS动态引入相对路径的CSS文件1. 获取相对路径2. 动态加载css文件3. 引入css 1. 获取相对路径 参考 https://www.cnblogs.com/dragondean/p/js-self-path.html // 获取js完整路径 function getMySrc() { var scriptSrc = document.getElementsByTagNam...原创 2019-03-28 14:49:40 · 1559 阅读 · 0 评论