- 博客(9)
- 收藏
- 关注
原创 JQuery-3 Section 2(Animation)
<br />$(selector > div:first): > select the child node.<br /> <br />$('#bio h3').click(function() {<br /> $(this).next().animate( {'height':'toggle'}, 'slow', 'easeOutBounce');}); // height: toggle, 自动切换高度。<br /> <br /> <br />$('p:first').animate( { <br
2011-03-27 23:18:00 699
原创 JQuery-3 Animation, Resizing and Scrolling
<br />$(selector).animate({attr:value}, time/type): animate the attribute in the element matched.<br />Hove, toggle in switch with alternative actions:<br /> <br /><br /> $('#actionBtn').toggle(function(){<br /> $('#disclaimer').css({'height':'hide',<
2011-03-27 20:20:00 879
原创 Ubuntu自动启动中文输入法
<br />1. whereis ibus, and get the right path of the ibus-daemon.(/usr/bin/ibus-daemon)<br />2. add this command in startup-application.
2011-03-27 11:03:00 950
原创 JQuery -2
$('#celebs tr.zebra').removeClass('zebra'); 移除当前节点的zebra class.$('#celebs tr:even').addClass('zebra');$('#button_id').click(function(){//logic}): button handler register$selector.is.(":attr_name): return true/false. $('#disclaimer').toggle(): 根据点击的次数
2011-03-26 23:22:00 817
原创 JQuery -1
jQuery是一个命名的空间,$是其同义词alias. jQuery的命令都是开始于jQuery的函数或者$。每一个jQuery命令都是由三个部分组成: selector, action, parameters (jquery/$('p').css('a','b');html 5中每个节点都是基于之类的匹配节点的。JQuery selection:$(html tag); $(id_name): $('#id_name');$(.class_name): show all the kinds of sel
2011-03-26 22:39:00 675
原创 解决Mysql中的中文乱码问题
<br />case1: 先创建database,然后创建表;输入中文,皆为乱码。 随后手动设置数据库/连接/client皆为uft8(/etc/mysql/my.cnf),依然无法生效。随后放弃。<br />case2: alter database xxx default character set utf8; 无效。<br />case 3: <br /> 直接删除数据库,新建数据库(create database myexam --default-character-set
2011-03-12 22:24:00 1052 3
转载 修改mysql缺省字符集和
ubuntu上mysql默认安装使用的字符集是latin1。1 查看字符集支持show character set;2 查看字符集相关变量show variables like "character_set%";3 设置默认字符集为解决乱码问题,最简单的办法就是修改默认字符集。修改默认字符集为utf8:找到/etc/mysql/my.cnf,在[mysqld]下加上:default-character-set=utf8或者如果装了桌面系统,可以
2011-03-12 19:33:00 1688
转载 How install mysql in Ubuntu for Rails 3
gem install mysql2Building native extensions. This could take a while…ERROR: Error installing mysql2: ERROR: Failed to build gem native extension./home/kahwee/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rbchecking for rb
2011-03-12 13:13:00 1407
原创 Vim Tab
<br />set list: show tab character;<br />set nonexpandtab/expandtab: make it convert forcely.<br />%retab!;<br /> <br />强制删除命令:<br /> /"[^"/t]*/t[^"]*"<br />
2011-03-10 16:52:00 795
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人