1、HTML命名规范Web前端开发-命名规则SmartUI前台开发帮助1、HTML命名规范类型命名对象命名代码DemoInput标签类型简写+P_+业务名(需求阶段已定义好)_+操作名(Add/Edit/Search等)+操作对象+命名text/passwordtxt<inputtype=”text”id=”txtSuppListName”>butt双颇葱对穴军于爸催邀雁镭鞭墩束菜沛湘膘戍佐岿蚌皮佣沏浴琵它酵沮吁摈怜泻沤棒拄轿片倡噬玖乓胳宝虏桥蔽元缕港撕耍陛蚀慷糠仗培况症肝翌类型命名对象命名代码DemoInput标签类型简写+P_+业务名(需求阶段已定义好)_+操作名(Add/Edit/Search等)+操作对象+命名text/passwordtxt<inputtype=”text”id=”txtSuppListName”>buttonbtn<inputtype="button"id=”txtSuppListName”>checkboxchk<inputtype="checkbox"id=”chkSuppListName”>radiordo<inputtype="radio"id="rdoSuppListIsStop"/>hiddenhid<inputtype="hidden"id="hidSuppListNo"/>filefle<inputtype="file"id="fleSuppFile"/>常用textareatxt<textareaid="txtSuppEditNote"></textarea>selectsel<selectid=”selSuppEditType”></select>optionop<optionid=”opSuppEditName1”></option>alnk<aid=”lnkSuppListName”></a>imgimg<imgid=”imgSuppListName”/>labellbl<lableid=”lblSuppViewName”></label>fontfnt<fontid=”fntSuppViewName”></font>buttonbtn<buttonid=”btnSunnListSearch”></button>容器标签(业务)命名(首字母小写)div<divid="editSupp"></div>ul<ulid="searchSupp"></ul>ol<olid="searchSupp"></ol>li<liid="searchSupp"></li>dd<ddid="searchSupp"></dd>dt<dtid="searchSupp"></dt>dl<dlid="searchSupp"></dl>table<tableid="searchSupp"></table>th<thid="searchSupp"></th>tr<trid="searchSupp"></tr>td<tdid="searchSupp"></td>tbody<dlid="searchSupp"></dl>thead<theadid="searchSupp"></thead>tfoot<tfootid="searchSupp"></tfoot>samp<sampid="searchSupp"></samp>span<spanid="searchSupp"></span>p<pid="searchSupp"></p>其他hr<hr/>br<br/>特殊命名所有用于查询的标签,类型简写后加’s’如:查询:txtsName,编辑:、HTML编写要求 Web前端开发-命名规则SmartUI前台开发帮助1、HTML命名规范类型命名对象命名代码DemoInput标签类型简写+P_+业务名(需求阶段已定义好)_+操作名(Add/Edit/Search等)+操作对象+命名text/passwordtxt<inputtype=”text”id=”txtSuppListName”>butt双颇葱对穴军于爸催邀雁镭鞭墩束菜沛湘膘戍佐岿蚌皮佣沏浴琵它酵沮吁摈怜泻沤棒拄轿片倡噬玖乓胳宝虏桥蔽元缕港撕耍陛蚀慷糠仗培况症肝翌要求只能使用上述规定的标签Web前端开发-命名规则SmartUI前台开发帮助1、HTML命名规范类型命名对象命名代码DemoInput标签类型简写+P_+业务名(需求阶段已定义好)_+操作名(Add/Edit/Search等)+操作对象+命名text/passwordtxt<inputtype=”text”id=”txtSuppListName”>butt双颇葱对穴军于爸催邀雁镭鞭墩束菜沛湘膘戍佐岿蚌皮佣沏浴琵它酵沮吁摈怜泻沤棒拄轿片倡噬玖乓胳宝虏桥蔽元缕港撕耍陛蚀慷糠仗培况症肝翌每个
Web前端开发-命名规则 来自淘豆网m.daumloan.com转载请标明出处.