//安卓
WebView wv = (WebView) findViewById(R.id.webview);
wv.getSettings().setJavaScriptEnabled(true);
//javascript
function bindIcons() {
jQuery("a.icons").bind('mouseover mouseout mousedown mouseup focus blur touchstart touchend', function (e){
if (typeof console !== "undefined" ) console.log(e);
if (e.type=='mouseover' || e.type=='focus')
{
jQuery(e.currentTarget).toggleClass('over',true);
}
if (e.type=='mousedown' || e.type=='touchstart')
{
jQuery(e.currentTarget).toggleClass('down',true);
}
if (e.type=='mouseout' || e.type=='mouseup' || e.type=='touchend' || e.type=='blur')
{
jQuery(e.currentTarget).toggleClass('down',false);
jQuery(e.currentTarget).toggleClass('over',false);
}
});
if (isAndroid())
jQuery("a.ifandroid").attr("href","javascript:ifAndroid();");
else
jQuery("a.ifandroid").toggleClass('ifandroid',false);
}