会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
caidan1995
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
下一页
2014年3月20日
JS学习
摘要: http://coding.smashingmagazine.com/2012/08/17/javascript-events-responding-user/
阅读全文
posted @ 2014-03-20 22:09 菜蛋
阅读(157)
评论(0)
推荐(0)
2014年2月4日
document.createDocumentFragment 方法
摘要: 基本概念document.createDocumentFragment方法会创建一个DocumentFragment对象,该对象是一个存在于DOM树之外的DOM节点。它有一个非常有用的特性:当DocumentFragment节点被插入DOM树时,插入DOM树的其实并不是DocumentFragment节点,而是它的所有子孙节点(即DocumentFragment节点本身会自动消失)。这个特性使其常被拿来当作DOM操作的buffer,即当有大量DOM节点插入DOM树时,我们会首先把它们插入DocumentFragment节点(由于DocumentFragment节点不在DOM树中,因此对其进行a
阅读全文
posted @ 2014-02-04 13:06 菜蛋
阅读(381)
评论(0)
推荐(0)
2013年10月25日
velocity 教程
摘要: 1,$!{product.name} - $!{title}$!{about.title} - $!{title}$!{news.title} - $!{title}新闻中心 - $!{title}$!{title}2,内容管理系统 创新 #foreach($info in $aboutlist) $!{info.title} #end 首页 > 创新 $!{about.content} ...
阅读全文
posted @ 2013-10-25 11:36 菜蛋
阅读(314)
评论(0)
推荐(0)
2013年10月24日
velocity 语法
摘要: 1,如果调用是第一条就加上类名current.#foreach($info in $aboutlist) $!{info.title} #end2,调用二级标题#foreach($info in $aboutlist) $!{info.title} #foreach($info2 in $info.childlist) $!{info2.title} #end #end3,$(function(){ $(".xxxxxxx a").each(function(){ if(window.location....
阅读全文
posted @ 2013-10-24 11:20 菜蛋
阅读(205)
评论(0)
推荐(0)
2013年8月2日
JS面向对象
摘要: 使用面向对象时,只关注对象提供的功能,不关注其内部细节面向对象编程的特点:抽象、封装(不考虑内部实现 ,只考虑功能使用)、继承(从已有对象上,继承出新的对象)对象的组成: 方法-----函数:过程、动态的 属性-----变量:状态、静态的为对象添加方法和属性this详解,事件处理中this的本质 window this----函数属于谁不能在系统对象中随意附加方法、属性,否则会覆盖已有方法、属性,所以引入object对象object对象任何函数前面都能加new,函数里面的this指向对象,不再指向window调用函数前面如果加new,偷偷创建对象,偷偷返回无标题文档
阅读全文
posted @ 2013-08-02 14:06 菜蛋
阅读(166)
评论(0)
推荐(0)
2013年6月20日
javascript
摘要: var head= document.getElementById("head"); head.style.cssText="width:200px;height:70px;display:bolck"; //JS设置多个CSS属性$('a','#container').click(function(){alert('aasdsdf')}) //逗号后面的元素里找逗号前面的元素等同$('#container a') $(function(){ var aa=document.getEleme
阅读全文
posted @ 2013-06-20 16:32 菜蛋
阅读(130)
评论(0)
推荐(0)
2013年6月14日
jQuery插件
摘要: ;(function($){ $.fn.mchoice=function(target) { var $target=$(target); var $this=this; $(":checkbox",$this).on("click",function() { if($(this).is(":checked")) { var html=$(''+$(this).val()+''); $target.prepend(html); }else { $("span:contains("+$
阅读全文
posted @ 2013-06-14 16:54 菜蛋
阅读(220)
评论(0)
推荐(0)
2013年6月10日
08CMS
摘要: //输出所有变量调用栏目{c$zttj [tclass=pushs/] [paid=5/] [startno=2/][limits=4/] [ttl=1200/]} ·{subject} {/c$zttj}类目节点调用 {c$cj321 [tclass=archives/] [limits=4/] [chsource=2/] [chids=1/] [caidson=1/] [casource=1/] [caids=222/] [ccidson13=1/] [cosource13=1/]} {if...
阅读全文
posted @ 2013-06-10 16:47 菜蛋
阅读(257)
评论(0)
推荐(0)
2013年5月13日
js
摘要: 让滚动条距离顶端function c(b){ window.scrollTo(0,b); }跳转到此页面的main框架,并让滚动条距离顶部540<li><a href="{:$a['URL']:}" target="main" onclick="c(540)">{:$a['title']:}</a></li>当a标签的href属性用了js(javascript:;/javascript:return false)时,设置a:visited看不到a:visi
阅读全文
posted @ 2013-05-13 17:05 菜蛋
阅读(174)
评论(0)
推荐(0)
2013年5月4日
javascript [2 day]
摘要: = 赋值(改变)==判断js里面双引号里面包括的双引号要用转义符,要不然就把双引号改为单引号点击按钮显示/隐藏div<script>function showHide(){ var oDiv=document.getElementById('div1'); if(oDiv.style.display=='block') //==判断 { oDiv.style.display='none'; //= 赋值(改变) } else { oDiv.style.display='block'; }}<script>&
阅读全文
posted @ 2013-05-04 20:34 菜蛋
阅读(143)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
下一页
公告