摘要: IE:obj.style.styleFloat其他浏览器:obj.style.cssFloat。 阅读全文
posted @ 2012-05-24 12:33 纯属偶然_黄勇 阅读(1390) 评论(0) 推荐(0) 编辑
摘要: function test(){$.ajax({ type: "POST", url: "json.txt", data: '000', dataType:'json',//此项十分重要,切记! success: function(msg){ var data_text=""; $.each(msg.logistics_companies_get_response.logistics_companies.logistics_company, function(i,item){ data_text+=&q 阅读全文
posted @ 2012-05-16 16:32 纯属偶然_黄勇 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 经常有如下JS跳转写法:<a href="javascript:void(0);" onclick="javascript:location.replace ('http://www.baidu.com/');">test js location.replace()</a><a href="javascript:void(0);" onclick="javascript:location.href ='http://www.baidu.com/';"&g 阅读全文
posted @ 2012-04-12 15:43 纯属偶然_黄勇 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: var bbc=""; $(function(){ $("#test").datagrid({ loadFilter: function (data){bbc=data;return bbc;}, /*loadFilter: function (data) { for (var i = 0; i < data.rows.length; i++) { for (var att in data.rows[i]) { if (typeof (data.rows[i][att]... 阅读全文
posted @ 2012-04-01 20:58 纯属偶然_黄勇 阅读(49466) 评论(0) 推荐(1) 编辑
摘要: 开始 婷 阅读全文
posted @ 2012-03-31 16:05 纯属偶然_黄勇 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <body> <div></div> <div id="b"></div> <div></div> <div></div> <div></div> <div></div> </body><style>div{height:100px;width:100px;border:1px solid #ccc;margin-bottom:10px; background-color:white; curso 阅读全文
posted @ 2012-03-29 14:47 纯属偶然_黄勇 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <body><button>Click Here</button><div>this is a div</div><p>this is a p</p><span>this is a span</span><br /><br /><b>this is a b</b><br /><br /><em>this is a em</em></body>$(function(){ $(&quo 阅读全文
posted @ 2012-03-29 11:31 纯属偶然_黄勇 阅读(16725) 评论(0) 推荐(1) 编辑
摘要: 因为要学习jQuery-EasyUI,不得已,准备开始写点博客,毕竟年纪大了,好多东西说着说着就忘了。刚来公司那会,只是做网页编辑,半年以后才开始学习html+css,入门到升华到些许厌恶。一年半以后开始学习Javascript,一本书看完,却是一句也没写出来。在这要感谢Jeremy Keith的《Javascript DOM 编程艺术(第二版)》,看完以后才真正开始入门Javascript。现在和新的程序员搭伙,要努力学习jQuery,json。慢慢的在深入的了解着前端。学习不断,就像《锋利的jQuery》一书的封面上说的:“每多学一点知识,就少写一行代码”!再有,今天给喜欢的人买了一本HT 阅读全文
posted @ 2012-03-28 17:01 纯属偶然_黄勇 阅读(219) 评论(0) 推荐(0) 编辑