I have a bit of an issue with a function running in chrome that works properly in Safari, both webkit browsers...
I need to customize a variable in a function for Chrome, but not for Safari.
Sadly, I have been using this to detect if it is a webkit browser:
if ($.browser.webkit) {
But I need to detect:
if ($.browser.chrome) {
Is there any way to write a similar statement (a working version of the one above)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…