2019年9月30日

摘要: var tds = document.getElementsByClassName("dv1")[0].children console.log(tds) 因为class可以重复使用,所以class获取到的是一个数组,如果想用class找儿子,就必须加上索引值, var a = document.g 阅读全文
posted @ 2019-09-30 10:28 xhshen 阅读(225) 评论(0) 推荐(0) 编辑

2019年9月24日

摘要: 如果之前有安装过其他的版本的话,要先卸载 卸载:npm uninstall vue-cli-g 或 yarn global remove vue-cli 安装:npm i @vue/cli -g vue create mytest(文件名) 运行:生成图形化界面 vue UI cd mytest(查 阅读全文
posted @ 2019-09-24 11:16 xhshen 阅读(1340) 评论(0) 推荐(0) 编辑
 
摘要: <!DOCTYPE html><html><head lang="cn"><title>Insert title here</title><script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script></head><body> 阅读全文
posted @ 2019-09-24 11:02 xhshen 阅读(670) 评论(0) 推荐(0) 编辑
 
摘要: 只需要legend属性中修改如下几个示数即可: legend:{ orient:"horizontal", x:'right', y:' center', width:'100', padding:[10, 30,0 0], itemWidth:30, textStyle:{ color:'#000 阅读全文
posted @ 2019-09-24 09:28 xhshen 阅读(32594) 评论(0) 推荐(0) 编辑
 
摘要: div{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 阅读全文
posted @ 2019-09-24 09:18 xhshen 阅读(1408) 评论(0) 推荐(0) 编辑
 
摘要: 实例: <label for="man"> <input type="radio" value="男" name="man" id="man"/> 男 </label> <label for="nv"> <input type="radio" value="女" name="man" id="nv&quo 阅读全文
posted @ 2019-09-24 09:11 xhshen 阅读(1806) 评论(0) 推荐(0) 编辑

2019年9月20日

摘要: 在input上添加 readonly unselectable="on" οnfοcus="this.blur()" 就可以了。 阅读全文
posted @ 2019-09-20 17:26 xhshen 阅读(546) 评论(0) 推荐(0) 编辑