Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对 dwz.tab.js 的改进,ajax不重复刷新,模仿navTab的关闭按钮 #45

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

对 dwz.tab.js 的改进

原来的 class="j-ajax" 每次点击tab都刷新
<!--ajax载入,每次点击都刷新-->
<li><a href="tab2.html" class="j-ajax"><span>从表2</span></a></li>

1. 加了 ajax-once 可以只载入一次,就像navTab的行为,改进在 
dwz.tab.js
<!--ajax载入,只载入一次-->
<li><a href="tab1.html" class="j-ajax ajax-once"><span>从表1</span></a></li>

2. 从navTab复制过来的关闭外观,改进在 core.css 和 style.css 里
<!--关闭按钮-->
<li><a href="tab3.html" class="j-ajax"><span>从表3</span></a><a href="#" 
class="close">close</a></li>

Original issue reported on code.google.com by virusc...@gmail.com on 15 Dec 2011 at 3:32

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant