摘要:
前台 @if (Session["username"] != null) { <div class="login"> <span style="width:155px;height:85px;display:inline-block;margin-left:50px;margin-top:25px; 阅读全文
posted @ 2015-05-08 20:31
BloggerSb
阅读(1742)
评论(0)
推荐(0)
摘要:
jquery库提供了$.trim()方法,能直接用, 但没用库时FF里有效果,IE里就没实现, 解决办法:用正则替换 方法: function trimStr(str){return str.replace(/(^\s*)|(\s*$)/g,"");} var 变量=trimStr(需要去空格的字符 阅读全文
posted @ 2015-05-08 11:48
BloggerSb
阅读(347)
评论(0)
推荐(0)
摘要:
reference:http://www.jb51.net/article/42482.htm使用 substring()或者slice() 函数:split() 功能:使用一个指定的分隔符把一个字符串分割存储到数组 例子: str=”jpg|bmp|gif|ico|png”; arr=theStr... 阅读全文
posted @ 2015-05-08 11:37
BloggerSb
阅读(461)
评论(0)
推荐(0)
摘要:
先看看json返回的数据结构:我需要遍历取出bookreno 与 title 加载到页面容器中去首先我要取到recommendedBookList 字典结构数据,然后遍历反射到相应对象的属性主方法这样写:$(d.recommendedBookList).each(function(index,it... 阅读全文
posted @ 2015-05-08 11:18
BloggerSb
阅读(1591)
评论(0)
推荐(0)

浙公网安备 33010602011771号