1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$(function(){
  var mobile_flag = isMobile(); // true为PC端,false为手机端
 
  if(mobile_flag){
      $("#fh5co-main").css({"width": "100%", "float": "right"});
      $("#trademark").css({"margin-left": "48px","margin-top": "16px"});
  }
  console.log(mobile_flag);
});
 
function isMobile() {
  var userAgentInfo = navigator.userAgent;
 
  var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"];
 
  var mobile_flag = false;
 
  //根据userAgent判断是否是手机
  for (var v = 0; v < mobileAgents.length; v++) {
      if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
          mobile_flag = true;
          break;
      }
  }
 
   var screen_width = window.screen.width;
   var screen_height = window.screen.height;   
 
   //根据屏幕分辨率判断是否是手机
   if(screen_width < 500 && screen_height < 800){
       mobile_flag = true;
   }
 
   return mobile_flag;
}

  

posted @ 2020-03-19 09:27 Jamy 阅读(4323) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div style="height:100%; width:100%;" @wheel.prevent="handleScroll"> <div class="hometitle"> <div v-for="navItem in navL 阅读全文
posted @ 2019-12-04 14:34 Jamy 阅读(458) 评论(0) 推荐(0) 编辑
摘要: <script> window.location.href = '/html/index.html';</script> 阅读全文
posted @ 2019-11-12 13:35 Jamy 阅读(86) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="scroll"> <div class="scroll-div-outer" id='scrollDiv'> <div class="scroll-div-inner"> </div> </div> </div> </template> <script> 阅读全文
posted @ 2019-10-09 11:26 Jamy 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: Keychain password access This question has been Answered. janec2070563 May 8, 2018 11:07 AM I constantly get asked for the password to my 'keychain ac 阅读全文
posted @ 2019-09-06 20:22 Jamy 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 这些状态码被分为五大类: 100-199 用于指定客户端应相应的某些动作。 200-299 用于表示请求成功。 300-399 用于已经移动的文件并且常被包含在定位头信息中指定新的地址信息。 400-499 用于指出客户端的错误。 500-599 用于支持服务器错误。一些常见的状态码为: 200 - 阅读全文
posted @ 2019-09-02 11:45 Jamy 阅读(186) 评论(0) 推荐(0) 编辑
摘要: # 替换brew.git cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git cd "$(brew --repo)/Libra 阅读全文
posted @ 2019-08-30 23:02 Jamy 阅读(2764) 评论(0) 推荐(0) 编辑
摘要: 用到共享软件为:samba 配置文件为 /etc/samba/smb.conf sudo fdisk -l 查看磁盘 sudo df -lh 查看磁盘挂载情况 sudo mount /dev/sdb /mnt/diskb 挂载sdb到diskb文件 mkfs.ext4 /dev/sdb 格式化成ex 阅读全文
posted @ 2019-08-27 00:39 Jamy 阅读(406) 评论(0) 推荐(0) 编辑
摘要: window 与 linux 的媒介 sudo apt-get install samba sudo vi /etc/samba/smb.conf [share] #文件名称 comment = samba home directory #文件介绍path = /home/share #文件路径pu 阅读全文
posted @ 2019-08-09 00:22 Jamy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 视图 边角构件 - - 这个是显示边角弧度的 阅读全文
posted @ 2019-07-29 14:36 Jamy 阅读(102) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示