appframework3.0(JQmobi)入门教程
版权声明:本文为博主原创文章,未经博主允许不得转载。
appframework3.0好像是3月24日发布的,今天31号,发现和之前的appframework2.1 || 2.2并不同。
jqmobi3.0中不在支持 data-load/data-unload 属性。
如果想继续用
以前的 data-load/data-unload 可以复制一下代码放到您的程序中
They are renamed, and there is now "before" events too. If you liked the old way, you could always write a plugin to enable it.
- //psuedo code
- var dispatchPanelEvent:function(fnc,myPanel){
- if (typeof fnc === "string" && window[fnc]) {
- return window[fnc](myPanel);
- }
- else if(fnc.indexOf(".")!==-1){
- var scope=window,items=fnc.split("."),len=items.length,i=0;
- for(i;i<len-1;i++){
- scope=scope[items[i]];
- if(scope===undefined) return;
- }
- return scope[items[i]](myPanel);
- }
- };
- $(document).on("panelload",function(e){
- var hasLoad=$(e.target).attr("data-load");
- return dispatchPanelEvent(hasLoad,e.target);
- })
- $(document).on("panelunload",function(e){
- var hasLoad=$(e.target).attr("data-unload");
- return dispatchPanelEvent(hasLoad,e.target);
- })
结构:
id="mainview" 肯定是 app页面的主视图。
id="splashscreen" 是加载页面过渡的代码块。
在id="mainview" 中,直接header 和 footer 应该是默认的公共顶部和底部。nav是左右导航,id=left做导航,id=right是右导航。
左右导航中还包含header和footer,可以以class=pages再分多个页面。
data-include="“包含一个子页面。
data-left-drawer="left" 声明左导航。
class="panel"声明一个画面。
data-title="Main"是当前画面顶部标题。如果没有可能会继承上一级的header。
data-selected="true" 默认选中这个画面。
data-tab="navbar_ui" 选中的id=navbar_ui的ID。
data-footer="footerui"自定义底部导航。
title=""也是标题,出现在顶部,不知道和data-title="Main"区别。
data-menu-close 关闭左右导航。
data-menu-close data-right-menu="right" 关闭又侧导航。
onclick="$.afui.drawer.hide('#left')" 关闭id=left的导航。
$.afui.drawer.show('#right','right','push')打开右导航像推动效果。
data-transition="slide" 转场效果为slide
appframework3.0(JQmobi)入门教程的更多相关文章
- ECMAScript 6.0基础入门教程
ECMAScript 6.0基础入门教程 转:https://blog.csdn.net/hexinyu_1022/article/details/80778727 https://blog.csdn ...
- BurpSuite pro v2.0 使用入门教程
BurpSuite简介 BurpSuite是进行Web应用安全测试集成平台.它将各种安全工具无缝地融合在一起,以支持整个测试过程中,从最初的映射和应用程序的攻击面分析,到发现和利用安全漏洞.Burps ...
- Express 3.0新手指南入门教程
在确认已经安装了node之后(下载), 在你的机器上创建一个目录,让我们来开始你的第一个应用程序吧 $ mkdir hello-world 在这个目录中你首先得定义一下你的应用程序“包”文件,它和其它 ...
- Spring Boot 2.0.1 入门教程
简介 Spring Boot是Spring提供的一套基础配置环境,可以用来快速开发生产环境级别的产品.尤其适合开发微服务架构,省去了不少配置麻烦.比如用到Spring MVC时,只需把spring-b ...
- Spring Cloud 入门教程 - 搭建配置中心服务
简介 Spring Cloud 提供了一个部署微服务的平台,包括了微服务中常见的组件:配置中心服务, API网关,断路器,服务注册与发现,分布式追溯,OAuth2,消费者驱动合约等.我们不必先知道每个 ...
- Python 官方文档:入门教程
https://pythoncaff.com/docs/tutorial/3.7.0 官方入门教程,从这里开始你的 Python 之旅,将长久维护 基础信息 翻译说明 关于本教程 已完成 正文 1. ...
- Python该怎么入门?Python入门教程(非常详细)
Python要学多久可以学会,达到精通呢? 任何知识都是基础入门比较快,达到通晓的程序是需求时日的,这是一个逐渐激烈的进程. 通晓任何一门编程语言,都需求通过大量的实践来积累经验,解决遇到的各种疑难问 ...
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0 +VS 2013 开发环境配置
图片太多,具体过程参照: [OpenCV入门教程之一] 安装OpenCV:OpenCV 3.0.OpenCV 2.4.8.OpenCV 2.4.9 +VS 开发环境配置 说下我这边的设置: 选择deb ...
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
本系列文章由@浅墨_毛星云 出品,转载请注明出处. 文章链接:http://blog.csdn.net/poem_qianmo/article/details/19809337 作者:毛星云(浅墨 ...
随机推荐
- Softmax回归
Reference: http://ufldl.stanford.edu/wiki/index.php/Softmax_regression http://deeplearning.net/tutor ...
- bzoj4364: [IOI2014]wall砖墙
线段树打标记的好(luo)题 打打标记,记得下移 = =听说2000000是用来卡线段树的 = =怎么办呢,,, = =打个读入优化看看能不能卡过去吧 #include<cstdio> # ...
- StringTemplate初步使用
例子1: private static void test_1(String[] args) throws Exception { ST hello = new ST("Hello, < ...
- iOS-Runtime知识点整理
本文目录 1.Runtime简介 2.Runtime相关的头文件 3.技术点和应用场景 3_1.获取属性\成员变量列表 3_2.交换方法实现 3_3.类\对象的关联对象,假属性 3_4.动态添加方法, ...
- R中一切都是vector
0.可以说R语言中一切结构体的基础是vector! R中一切都是vector,vecotor的每个component必须类型一致(character,numeric,integer....)!vect ...
- Junit测试 - Spring的配置
第一种: @ContextConfiguration(locations = {"classpath*:/spring-core.xml"}) public class UserM ...
- Go语言配置与开发环境配置
1.首先下载go的运行时 http://golang.org/dl/ 下载windows 的zip版本,解压到硬盘上的一个位置 2.设置环境变量如下 GOBIN %GOROOT%\bin //go的 ...
- 安卓中級教程(10):@InjectView
package com.example.android.db01; import android.app.Activity; import android.content.ContentValues; ...
- 【iCore3 双核心板】【发布基于 iCore3的显示模块(包含7寸屏,4.3寸屏,vga模块等】
====================注意 ==================== 1.本代码仅仅对iCore3客户(使用者)开放: 2.iCore3使用者凭购买id或者订单号给 gingko[A ...
- spring mvc controller间跳转 重定向 传参 (转)
转自:http://zghbwjl.blog.163.com/blog/static/12033667220137795252845/ 1. 需求背景 需求:spring MVC框架contr ...