react生成的表单,input输入不了内容,经百度后,发现react生成的表单如果要重新渲染其中的value应该改变state才会重新渲染,所以要给input绑定onChange事件 ...
分类:
其他好文 时间:
2017-09-26 11:55:17
阅读次数:
126
Kotlin的字符模板和c语言的格式化输出有点像。 先来说说Kotlin 的字符模板怎么弄。 输出结果:I am Tang 那么该如何使用呢? 格式:${value} 其实这个字符模板基本是格式化输出。值得一说的这个也支持函数的返回值和表达式。 表达式 函数 ...
分类:
其他好文 时间:
2017-09-26 11:51:13
阅读次数:
112
Redis 是完全开源免费的,遵守BSD协议,是一个高性能的key-value数据库。 Redis 优势: 性能极高 – Redis能读的速度是110000次/s,写的速度是81000次/s 。 丰富的数据类型 – Redis支持二进制案例的 Strings, Lists, Hashes, Sets ...
分类:
其他好文 时间:
2017-09-26 11:13:28
阅读次数:
103
方式1、splice 1 2 3 var ary = [1,2,3,4]; ary.splice(0,ary.length); console.log(ary); // 输出 [],空数组,即被清空了 详细说明:http://www.w3school.com.cn/jsref/jsref_splic ...
分类:
编程语言 时间:
2017-09-26 10:44:30
阅读次数:
273
#include<iostream> using namespace std; int main(){ int x=8999; int value=x*1000/1000; cout<<"value="<<value<<endl; return 0; } ...
分类:
其他好文 时间:
2017-09-26 01:00:55
阅读次数:
125
class superclass{ static { System.out.println("superclass init"); } public static int value = 123;}class subclass extends superclass{ static { System. ...
分类:
其他好文 时间:
2017-09-26 00:05:55
阅读次数:
141
一.简单介绍 在JavaScript中除了null和undefined以外其他的数据类型都被定义成了对象,也可以用创建对象的方法定义变量 以创建对象的方式定义变量 var aa=Number.MAX_VALUE; var bb=String("hello world"); var cc=new Da ...
分类:
编程语言 时间:
2017-09-25 22:00:40
阅读次数:
227
【原帖地址】http://blog.csdn.net/leafage_m/article/details/54577687 动态方法调用Action。 这种方法,需要在struts.xml中对其进行支持: 当struts.xml中的这个配置的value为true时,代表可以使用动态方法对action ...
分类:
其他好文 时间:
2017-09-25 21:58:59
阅读次数:
111
二、web.xml配置 check your struts2-core-x.x.jar version. -->if it is struts2-core-2.5.jar then change your filter class tag value in web.xml to -->if it i ...
分类:
Web程序 时间:
2017-09-25 21:54:25
阅读次数:
152
#include <iostream>using namespace std;int main(){int x=8999;int value=x*1000/1000;cout<<"value="<<value<<endl;} #include <iostream>using namespace st ...
分类:
编程语言 时间:
2017-09-25 20:51:25
阅读次数:
192