基于 jquery 的片段异步加载 jquery-fjax
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://git.oschina.net/nnsword/jquery-fjax
- 软件文档: http://git.oschina.net/nnsword/jquery-fjax
软件介绍
jquery-fjax 页面片段异步加载
基于锚点技术,支持所有浏览器,不需要浏览支持 history.pushState
如果支持客户浏览器都支持 history.pushState ,建议使用 pjax
需要引入 jquery 库,开发版本选用的是v2.2.1,其它版本未验证
QQ:16349023
<script th:src="@{${prefixPath}+'/assets/plugins/jquery-fjax/jquery.fjax.js'}" src="/assets/plugins/jquery-fjax/jquery.fjax.js"></script> <script type="text/javascript" th:inline="javascript"> /*<![CDATA[*/ $(function() { var fjax_options = { fragment:'#pagecontent', prefix:'/manage/', beginLoad:function () { console.log("begin"); }, endLoad:function () { console.log("end"); }, success:function () { console.log("success"); }, error:function () { console.log("error"); }, 'default_url': 'main',//default hash 'content_url': function(hash,prefix) { //***NOTE*** //this is for Ace demo only, you should change it to return a valid URL //please refer to documentation for more info var hashValue=hash; var path = document.location.pathname; //var requestUrl=path + "/" +hashValue.replace(/^page\//, ''); //var requestUrl=path + "/" +hashValue; console.log(prefix); var requestUrl=prefix+hashValue; console.log(requestUrl); return requestUrl; } } $('.page-content-area').fjax(fjax_options); }); /*]]>*/ </script>
无懈可击的Web设计
【美】Dan Cederholm / 马跃 / 清华大学出版社 / 2012-5 / 39.00元
本书将指导您采用标准设计策略来满足以各种方式浏览网页的各类用户的需要。每章首先列举一个沿用传统HTML技术的实例,然后指出该实例的局限性,并利用XHTML和CSS对其进行重构。从中您将学会如何用简洁高效的HTML标记和CSS来取代臃肿的代码,从而创建加载速度极快、能供所有用户使用的网站。本书最后将前面各章讨论的所有页面组件珠联璧合地结合在一起,制作了一个页面模板。这一版全面润色和更新了上一版本,介......一起来看看 《无懈可击的Web设计》 这本书的介绍吧!
