undefinedyu
undefinedyu
**块级元素:** - head - - meat - 申明页面的诸多属性 - title - 窗口标题 - style - 样式 - body - 文本内容 - header - 头部块 - section - 内容块 - footer...
一: section{height: 100%; overflow: hidden;clear:both; } .left{ height: 100%;float:left;width:30%;background: #f00; } .right{ height: 100%;float:right;width:30%; background: #0f0; } .center{ height: 100%;background: #00f;} 二: section{ height: 100%;display: flex;justify-content: center;align-items: center;} .left{ height:...
没留意这个区别啊。.... 尴尬的很
function delLast (str,del) { if (tpeof str !== 'string') { alert('请确认要删除的对象为字符串!'); retrun false; } else { let index = str.lastIndexOf(del); str.substring(0,index ) + str.substring(index+1,str.length); } } 用的是张震的方法
这里找到一个好方法。希望能有用。 function substrCount(str, target) { if(Object.prototype.toString.call(str).slice(8,-1) === 'String' && !str) alert("请填写字符串"); else return (str.match(new RegExp(target, 'g')).length); }
var a; !a && 1 || 0 ; ~a+2
function changeLine (str) { if(typeof str !== 'string'){ alert('请确认要删除的对象为字符串!'); }else { var newName = ''; var arr = str.split('_'); arr.map((v,i)=>{ if(i===0){return}; newName += ad.substr(0,1).toUpperCase() + ad.substr(1); }) } }
var reversal = function(str){ var newStr = ''; if(Object.prototype.toString.call(str).slice(8,-1) !== 'String'){ alert("请填写字符串") }else{ for(var i=0;i96 && str.substr(i,1).toUpperCase()) || str.substr(i,1).toLowerCase()); } } return newStr; }
title 是浏览器窗口网页标题 h1 是页面标签,一个页面最好只有一个,利于SEO搜索。 其他的不知道啥区别。只知道 i 标签一般配合图标来使用。
- class - id - data - type - href - style - width - height - targe - checked - disabled - requie - ref - alt - title...