摘要: HTML结构:<div id="colorDiv" style="border:1px solid #f00;width:250px;height:250px;clear:both;"></div> <ul> <li class="blue" onclick="changeColor('blue')"></li> <li class="yellow" onclick="changeColor('y 阅读全文
posted @ 2012-02-29 19:21 奇闻天下 阅读(224) 评论(1) 推荐(0)
摘要: 声明字符串"javascript学习笔记,String字符串相关!"取得字符串长度?并查找"记"字所在位置?第12个字符是什么?截取字符串"学习笔记",并追加到"我的"后面?替换掉原字符串中的"字"为"学"?<script type="text/javascript"><!--var str = "javascript学习笔记,String字符串相关!" document.write(str.length + &quo 阅读全文
posted @ 2012-02-29 09:04 奇闻天下 阅读(209) 评论(0) 推荐(0)