pStack DOM element stack

授权协议 未知
开发语言
所属分类 jQuery 插件、 其他jQuery插件
软件类型 开源软件
地区 不详
投 递 者 邵崇凛
操作系统 未知
开源组织
适用人群 未知
 软件概览

pStack plugin for jQuery.

Allows successive AJAX calls to replace contents of an element, whilst keeping previous contents in a stack.

Previous element contents can then be recalled by pop()ing them back off the stack.

Usage:

<script src="jquery.pagestack.js" type="text/javascript"></script>

<div id="myStack">
<p>this is the DOM chunk which dynamic things will happen to</p>
<p><a href="nextView.html" class="stackPush">Next ---</a></p>
</div>

<script type="text/javascript">
$('#myStack').pStack({
  aPush: 'a.stackPush',
  aPop: 'a.stackPop'
});
</script>

nextView.html might look like this (ie, not a complete HTML document):

<p>This is my new DOM contents</p>
<p><a href="#" class="stackPop">--- Prev</a></p>