<dependencies><!--Spring核心包--><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>${spring.version}</ve
分类:
编程语言 时间:
2019-08-07 17:27:18
阅读次数:
91
节点有三个重要属性:nodeName:节点的名称nodeValue:节点的值nodeType:节点的类型创建节点:例如:创建一个div元素,并给它一个classname,在body中追加一个divvarcj=document.creatElement("div");cj.classname="chuangjian";document.body.appendChild(cj);创建下一个节点varn
分类:
其他好文 时间:
2019-08-07 16:09:21
阅读次数:
77
1.UI对象识别器Selector 用法d(text='Clock', className='android.widget.TextView') 支持以下参数,详细信息可参考UiSelector Java doc text, textContains, textMatches, textStarts ...
查找元素: 元素的id属性 document.getElementById() 元素的class属性 document.getElementsByClassName() 元素的class标签名 document.getElementsByTagName() 元素的name属性 document.ge ...
分类:
其他好文 时间:
2019-07-31 14:38:57
阅读次数:
75
1.表单 1.在form表单中加入属性enctype="multipart/form-data" 2.给一个input type类型为file 的输入框还有给name 2.配置 在struts.xml中配置 <!-- 设置struts2上传的文件大小,默认情况下的大小是2M ,默认单位是B,目前允 ...
分类:
Web程序 时间:
2019-07-30 11:17:44
阅读次数:
156
// 获取class function getClass(el) { return el.getAttribute('class') } // 设置class function setClass(el, cls) { return el.setAttribute('class', cls) } //... ...
分类:
Web程序 时间:
2019-07-30 00:35:39
阅读次数:
115
(function(){ var i=0; var t=null; var msgTarea=document.getElementsByClassName("ChatSend-txt ")[0]; var btn=document.getElementsByClassName("ChatSend-... ...
分类:
其他好文 时间:
2019-07-28 15:56:37
阅读次数:
138
安装pug 接着在webpack中进行配置 最后在vue 模板中添加编译语言pug即可 1. 声明pug语言 在 .vue 文件中,使用 ... 声明pug模板。 2. 书写属性及文本 1.在 .vue 文件中,使用 tagname.className(attributeName="attribut ...
分类:
其他好文 时间:
2019-07-26 19:11:24
阅读次数:
376
taro一个标签里只能含有一个className,如果有多个会只渲染最后一个定义的,那么如果有动态渲染或者判断条件的className怎么办呢? 首先引入 mport classNames from 'classnames' 如果是根据 true 或者 false 动态添加 class,如下图 ,如 ...
分类:
其他好文 时间:
2019-07-25 23:35:19
阅读次数:
318
### 查询 + document.querySelector('.class/#id/li') [ 根据选择器(类名,id,标签名)获取节点,只能获取一个,返回一个节点 ] + document.querySelectorAll('.class/#id/li') [ 根据选择器(类名,id,标签名 ...
分类:
Web程序 时间:
2019-07-24 22:20:03
阅读次数:
197