摘要:
css: <style type="text/css"> * { margin: 0; padding: 0; list-style: none; } .clearfix { content: ''; clear: both; display: block; } .carousel { width: 阅读全文
摘要:
css .active { color: red; border-bottom: 1px solid red; } ul li { padding: 0 15px; float: left; list-style: none; } html <div id="root"> <ul> <li @cli 阅读全文
摘要:
/* css代码 */ <style type="text/css"> div { display: none; background-color: #ccc; width: 200px; height: 200px; border: 1px solid #999; } .show { displa 阅读全文
摘要:
push向数组的的末尾添加新的内容 unshift向数组的开头增加新的内容 slice(n,m)从索引n开始(包含n),找到索引m处(不包含m),然后把找到的内容作为一个新的数组返回,原有的数组不改变的。 floor() 方法可对一个数进行下舍入。 floor() 方法执行的是向下取整计算,它返回的 阅读全文
摘要:
var str = "zhufengpeixun2015yangfanqihang"; 字符串也是存在索引和length的 str.length 获取字符串的长度(字符的个数) 第一个字符的索引是0,第二个字符的索引是1... console.log(str[2]); 1、charAt(index) 阅读全文
摘要:
var stores = ""; $("#storeList tr").each(function() { if ($(this).find('input').is(':checked')) { var str = $(this).attr('data-stores') + ','; stores 阅读全文