UICollectionView的方法registerClass,如果调用会使注册的cell类在xib或storyboard里的相关内容失效。比如你在storyboard里为这个cell类加了一个button,那么实际上不会显示。 // If a class is registered, it wi ...
分类:
其他好文 时间:
2021-01-08 11:45:41
阅读次数:
0
1.利用jquery 2. bindData() { $("input,select option").each(function() { $(this).attr("value", $(this).val()); }); //搞定 type=checkbox,type=radio 选中状态 $(" ...
分类:
其他好文 时间:
2021-01-08 10:47:31
阅读次数:
0
a、基本选择器:#id,class,element,*; b、层次选择器:parent > child,prev + next ,prev ~ siblings c、基本过滤器选择器::first,:last ,:not ,:even ,:odd ,:eq ,:gt ,:lt d、表单选择器: :i ...
分类:
Web程序 时间:
2021-01-04 11:10:04
阅读次数:
0
<body> <div id="app"> <!-- 2.监听子组件发射的事件 然后再父组件处理事件 --> <cpn @itemclick="cpnClick"></cpn> </div> <template id="cpn"> <div> <button v-for="item in categ ...
分类:
其他好文 时间:
2021-01-02 11:26:02
阅读次数:
0
<!DOCTYPEhtml><html><head><metacharset="UTF-8"><title>防止ajax重复提交</title></head><body><buttonid="btn">提交</button><script>/***模拟ajax提交*@
分类:
Web程序 时间:
2021-01-02 10:57:31
阅读次数:
0
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <form acti ...
分类:
其他好文 时间:
2021-01-01 12:14:06
阅读次数:
0
11.21 1 小结: ● 单行文本框:<input type="text" name="name" value="value">。 ● 密码框:<input type="password" name="name" value="value">。 ● 单选按钮:<input type="radio" ...
分类:
编程语言 时间:
2020-12-24 12:27:21
阅读次数:
0
用maven打成jar包后,Main.class.getClassLoader().getResource("")为null。 示例: public static void main(String[] args) { System.out.println(Main.class.getResource ...
分类:
编程语言 时间:
2020-12-24 11:31:58
阅读次数:
0
父组件代码 demo <template> <div> <!-- 父组件数据 --> <!-- 通过showFlag判断子父组件得隐藏和现实,默认父组件为现实 true --> <div v-if="showFlag"> <el-button type="primary" size="mini" @ ...
分类:
其他好文 时间:
2020-12-22 12:29:58
阅读次数:
0
通常我们在做项目的时候都会用到大佬们发布到npm上的组件,简单的命令下载即可使用今天我们向大佬学习,走一波大佬的路 简单的目录结构 1.下载相关依赖 通过 npm init 命令,创建package文件 { "name": "vue-component-button", "version": "0. ...
分类:
其他好文 时间:
2020-12-22 12:21:22
阅读次数:
0