有时候需要查询纯文本形式的元素内容,或者在文档中插入纯文本.标准的方法是用Node的textContent属性来实现: var para = document.getElementsByTagName('p')[0]; var text = para.textContent; para.textContent = 'Hello World!'; textContent属性在除了IE的所有当前的浏览器中都支持.在IE中可以使用Element的innerText属性来代替. /* 一个参数,返回元素…
自动更新修改时间: mysql> create table z(a int ,b timestamp on update current_timestamp); mysql> insert into z ,current_timestamp; mysql> select * from z; +------+---------------------+ | a | b | +------+---------------------+ | | -- :: | +------+--------…