摘要:
&nb var str='1366668888'; var str2 = str.substr(0,3)+"****"+str.substr(7); alert(str2)sp; 阅读全文
摘要:
$("#timeupdown").click(function (){ if($(this).hasClass('uparrow')){ $(this).removeClass('uparrow').addClass('downarrow'); //收起 }else{ $(this).removeC 阅读全文
摘要:
HBuilder下载地址:在HBuilder官网http://www.dcloud.io/点击免费下载,下载最新版的HBuilder。 HBuilder目前有两个版本,一个是windows版,一个是mac版。下载的时候根据自己的电脑选择适合自己的版本。 阅读全文
摘要:
<head> <meta charset="UTF-8"> <title>Loading动画</title></head><style> .spinner{ margin: 100px auto; width: 50px; height: 60px; text-align: center; font 阅读全文
摘要:
promise的出现很好的给我们解决了回调地狱的问题。 promise主要解决一定顺序的多步操作非常好用 let state=1; function step1(resolve,reject){ console.log('1.开始-做饭'); if(state==1){ resolve('做饭--完 阅读全文
摘要:
1.两栏布局(左固定,右适应) 先写出初始样式和结构。 <div class="container"> <div class="left">Lorem ipsum dolor sit amet</div> <div class="right">Lorem ipsum dolor sit amet</ 阅读全文
摘要:
适配原理:将px换成rem,动态改变根元素html的font-size. //得到手机屏幕的宽度 let htmlWidth = document.documentElement.clientWidth || document.body.clientWidth; //得到html的Dom元素 let 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>star</title></head><style> .star{ width: 0; height: 0; border: 100px solid transpa 阅读全文