清除macport过时的软件包
macport使用port upgrade outdated之后,会保留过时的port包,下面脚本用来清理
$port installed|sed '/active/d'|sed 1d|awk '{print "sudo port uninstall ",$0}'>clearports.sh;sh clearports.sh
or
$sudo port -u
>uninstall
Ctrl -a + Ctrl -k 或 Ctrl -e + Ctrl -u 或 Ctrl -k + Ctrl -u 组合可删除整行。Alt - . 和 $_ 相同。!*的内容。!-1, 执行前5条命令的格式是: !-5<input id="test" oninput="console.log('input');" type="text" />
document.getElementById('test').oninput=function(){
console.log('input');
}
$('#test').on('input',function(){
console.log('input');
})
<input id="test" onpropertychange="alert('change');" type="text" />
document.getElementById('test').attachEvent('onpropertychange',function(e) { if(e.propertyName!='value') return; $(that).trigger('input'); });
$('#test').on('input',function(){
alert('input');
})
$('#test').on('input',function(){
alert('input');
})
//for ie
if(document.all){
$('input[type="text"]').each(function() {
var that=this;
if(this.attachEvent) {
this.attachEvent('onpropertychange',function(e) {
if(e.propertyName!='value') return;
$(that).trigger('input');
});
}
})
}