怎样用JavaScript检测平板电脑?检测UA。function loadCSS() { if ((navigator.userAgent.match((phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBer2023-02-21JavaScript260