摘要:
通俗JavaBean(以User为例)转成json格局1.转成JSONArray类型User user = new User();user.setUsername("cxl");user.setPassword("1234");JSONArray json = JSONArray.Object(user);System.out.println(json);//[{"password":"1234","username":"cxl"}]response.getWriter(). 阅读全文
摘要:
// 调用js方法$(function () {(new GoTop()).init({pageWidth :960,nodeId :'go-top',nodeWidth :50,distanceToPage:20,distanceToBottom :125,hideRegionHeight :130,text :''});});GoTop = function() { this.config = { pageWidth :960, // 页面宽度 nodeId :'go-top', //... 阅读全文
摘要:
BLOGURL=location.href;$(document).ready(function() {$(".select").mouseover(function() {$(this).find("ul").show();}).mouseout(function() {$(this).find("ul").hide();});$(".select li").click(function() {$(this).parent().hide();});$("#help_index ul li"). 阅读全文
摘要:
function login(type){var url = "http://runjs.cn/action/openid/before_login?op=" + type;openwindow(url, 'loginPage', 800, 600);}function logout(uid){jQuery.post("/action/ajax/logout",'uid='+uid, function(msg) {location.href="/";});}function openwindow(url 阅读全文
摘要:
阅读全文
摘要:
/**
* 根据订单生成支付宝接口URL.
* @param httpRequest
* @param order 订单实例
* @return
* @throws Exception
*/
public static String makeOrderAlipayUrl(HttpServletRequest httpRequest,Order order) throws Exception {
HashMap hm = new HashMap();
hm.put("_input_charset",httpRequest.getCharacterEncoding());/ 阅读全文
![](http://pic.cnblogs.com/avatar/584344/20160323111428.png)
摘要:
【说明】:因为IE系列浏览器可读「\9」,而IE6和IE7可读「*」(米字号),另外IE6可辨识「_」(底线),因此可以依照顺序写下来,就会让浏览器正确的读取到自己看得懂得CSS语法,所以就可以有效区分IE各版本和非IE浏览器(像是Firefox、Opera、 GoogleChrome、Safari等)。 阅读全文
![](http://pic.cnblogs.com/avatar/584344/20160323111428.png)
摘要:
推荐使用 on()--(jquery1.7版本以上),其次delegate()-, bind()方法和live方法已舍弃;
最好使用$("#commentForm").on("click", ".addNew", addComment)而不是$("body").on("click", "#commentForm .addNew", addComment)。 阅读全文
![](http://pic.cnblogs.com/avatar/584344/20160323111428.png)
摘要:
前端_拨号键登陆界面,不知猴年马月在那个宣传活动的网站给扒的,前几天无意中看到,分享文件下载_pwd 阅读全文