質問する
3348 次
1 に答える
4
I'm providing this with the usual caveats: you should use this only if you are absolutely sure there is no way to test the actual feature you want to use that differs between WebKit versions:
function checkWebKit() {
var result = /AppleWebKit\/([\d.]+)/.exec(navigator.userAgent);
if (result) {
return parseFloat(result[1]);
}
return null;
}
于 2010-04-28T23:08:26.017 に答える