摘要:
网站看了很多人转来转去的mysql的字符集修改为utf8的文章,也不知道同胞们有没有自己亲手试验过,反正我根据那些文章配置后就是启动不了。这里我把我的贴出来。# vi /etc/my.cf[client]default-character-set=utf8[mysql]default-character-set=utf8 ----------尤其注意,这句话写在mysqld中会报ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)之类的错误。[mysqld]cha. 阅读全文
摘要:
明明错误,还打钩...showLabel: function(element, message) { var label = this.errorsFor( element ); if ( label.length ) { // refresh error/success class 这里去掉 this.settings.validClass // label.removeClass( this.settings.validClass ).addClass( this.settings.errorClass ); label.remov... 阅读全文
摘要:
&& 是条件与。&&在检查两边的BOOLEAN时,当左边的为假时是不会检测右边的值的。表示一个一个执行下去,当全部为true才打印true,如果有一个结果是false则停止执行,打印false。例1:false && ... = false1 public class TestLogical {2 public static void main(String[] args) {3 int a = 10;4 if(a>10 && (a++)>10){5 System.out.println("true" 阅读全文
摘要:
++a 先将a的值加加,再把新的数值拿去做别的运算。
a++ 先把a的值拿去做运算后再将a的值++写入内存。
--的做法也是一样。 阅读全文