Comments (4)
没有人维护?
from mmrouter.
听同事说是修好了,你给一些复现步骤
from mmrouter.
好吧,代码刚贴到avalon那边了,再贴一遍,进入框架页面后点二级链接在ie11和android4.0都不触发路由:
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>pptViewer</title>
<link href="css/style.css" rel="stylesheet" />
<script src="lib/avalon.mobile.min.js"></script>
<script>
require(["ready!", "mmState", "mmRequest.modern"], function() {
//顶层VM
avalon.define({
$id:"app",
islogin:true,
});
// 路由
avalon.state("ppt",{
controller:"app",
url:"/ppt",
onChange:function(){
if(!avalon.vmodels.ppt) {
alert("获取初始数据,马上进入下一层")
var model = avalon.define({
$id:"ppt",
currentChannelName :"",
ppt :[]
})
setTimeout(function(){
avalon.router.navigate('/ppt/hot');
},0)
};
},
views:{
"":{
template : "<div>框架界面<div ms-view></div></div>"
}
},
onAfterLoad:function(){
}
})
avalon.state("ppt.list",{
controller:"ppt",
url:"/{type}",
onChange:function(type){
alert(type);
if(!avalon.vmodels.ppt) {
avalon.router.navigate("/ppt");
return;
};
},
views:{
"":{
template:"<p> <a href='#!/ppt/hot'>热门</a> <a href='#!/ppt/all'>全部</a> <a href='#!/ppt/mine'>我的</a></p>"
}
}
})
avalon.history.start();
avalon.scan();
})
</script>
</head>
<body ms-controller="app">
<div ms-view><a href="#!/ppt">点击</a></div>
</body>
</html>
from mmrouter.
更新一下js看看,我这边试好像是mobile.js require的路径算不对啊
from mmrouter.
Related Issues (20)
- avalon2好像取消了require那mmrouter要引用require.js库吗?
- 提交8c0932怎么把mmPromise.js给删除了
- 求mmRouter配合ms-include-src的教程
- avalon2 mmrouter如果页面存在iframe而且使用ms-attr="{src:@currPath}" 设置,点击浏览器前进后退事件BUG HOT 3
- avalon2 路由如何实现加载html时同时加载该html相应的js文件? HOT 1
- avalon2不能使用mmState? HOT 3
- mmRouter由子状态app.domain.edit返回上一状态时未触发$onEnter函数
- mmHistory.start 设置root为根路径时有有问题 HOT 1
- iframepool模式的bug HOT 1
- hasAttribute在低版本ie下报错 HOT 2
- 不明白mmState和mmRouter的关系。 HOT 2
- 按需加载路由怎么实现
- #!可以更改吗? HOT 1
- avalon.router.navigate(hash, mode) 方法可以不执行回调吗? HOT 2
- webpack2 打包在ie8下有很多兼容性问题,我看这个案例是用webpack 1 打包的,想问下有什么好的办法吗 HOT 2
- mmrouter 回调在ie7死循环
- 怎么设置其他情况都跳转到某一个url呢?
- 更新后的mmRouter链接不可用 HOT 1
- 【Help】用户F5强制刷新页面,在ready回调中执行此方法,这个ready如何操作? HOT 1
- mmrouter怎么带参数跳转
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmrouter.