前端
智鹿软件
这个作者很懒,什么都没留下…
展开
-
javascript Json和String互转
var jsonText = "{\"id\":\"123\",\"name\":\"tom\",\"sex\":\"male\"}"; var jsonObj = {"id":"123","name":"tom","sex":"male"}; 1.利用JavaScript自带eval函数转换 var myJson= eval("("+jsonText+")"); 2.利用原创 2014-07-25 10:40:15 · 550 阅读 · 0 评论 -
node.js入门
node.js官网:http://nodejs.org/ 参考资料: http://www.cnblogs.com/rubylouvre/archive/2010/07/15/1778403.html http://blog.csdn.net/kubalila/article/details/7267401 ht原创 2014-07-25 10:38:28 · 484 阅读 · 0 评论 -
Json对象遍历
var json = {"id":"123","name":"tom","sex":"male"}; 1.for循环遍历for(var key in json){ alert(key+":"+json[key]); } 2.利用jQuery遍历 $.each(json ,function(idx,item){ alert(item.id+"——"+it原创 2014-07-25 10:40:10 · 580 阅读 · 0 评论 -
跨frame操作dom元素
今天,一群友问到跨frame操作dom元素的问题。于是写了个demo,在此发表在博客里面,供其他同道中人参考! 创建child.html内容如下: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">原创 2014-07-25 10:38:07 · 896 阅读 · 0 评论 -
javascript图片延迟加载
1.jquery_lazyload github地址:https://github.com/tuupola/jquery_lazyload/ 教程:http://code.ciaoca.com/jquery/lazyload/ 2.Echo.js 主页:http://www.jq22.com/jquery-info660 demo:http://www.jq22.com/yanshi66...原创 2018-08-14 18:28:45 · 187 阅读 · 0 评论 -
web富文本编辑器
summernote 官网:https://summernote.org/ 教程:https://www.cnblogs.com/stitchgogo/p/6943917.html kindeditor 官网:http://kindeditor.net/demo.php原创 2018-08-16 14:36:47 · 872 阅读 · 0 评论