如果用户在智能手机/平板电脑或笔记本电脑上,我想加载不同的脚本.
这是我想要的结果:
笔记本电脑:
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
智能手机和平板电脑
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
Run Code Online (Sandbox Code Playgroud)
我该怎么做?