你好,我是卜卜口~
喜欢做有趣的项目、 喜欢人像拍摄、 喜欢圣地巡礼、 喜欢玩反恐精英、 喜欢捏粘土人头发。
喜欢「福音战士」 头像是自己模仿贞本义行原画拍的 照片
喜欢巡礼「吹响吧!上低音号」 巡礼文章 被推荐过哔哩哔哩首页最大的轮播位四天,凑齐九张图会发一条 微博
能不能好好说话、 电子包浆、 蒸 気 機、 恶臭数字论证器、
EVA 扫雷、 MAGI System、 选择所有包含绫波丽的图片、
还活着的项目最近会整理到 神奇海螺实验室
炒鸡轻量的前端单页路由框架
License: Apache License 2.0
index传的是子页面的,但返回的function是父页面内容。有iframe中使用q.js的例子吗
http://127.0.0.1:5500/src/index.html#!systemSelection这个路径下点击刷新按钮,方法reg('systemSelection', function () {
layui.systemSelection();
});不执行,而是执行init的首页
在其他路由页面点击刷新总是跳到首页,但是路由地址还是原来的地址
比如2个层级以上的路由
ie 6 7 对onhashchange 是不支持的,拜读了你代码,其中利用了这个事件,然并未未做兼容性处理
想请问一下作者,为什么用w啊,h呀一类的变量来命名,仅仅是为了减少体积么。 读起来太费劲了有木有啊
如题。要打开一个外部链接如果注册路由那
页面缓存严重怎么处理,主要就是chrome,firefox更新还比较正常
Q.lash,在Demo和文档中存在,但是没有这个属性
https://github.com/itorr/q.js/blob/master/q.js#L31
Q.lash 没有被使用?
Q.reg("login", function () {
console.log("1")
});
Q.reg("xxx", function () {
console.log("xxx")
});
Q.init({
index: 'login'/* 首页地址 */
});
地址是 #@xxx
依然会生效, 实际上只判断了key的长度, 没有对key做校验
我的理解是 key 不等于 !
的时候 应该按照实际的锚记来处理
demo也是不能获取_(:з)∠)_
demos/full.html
Q.reg(/before(\d+)end/,function(num){
M.innerHTML+='\n';
M.innerHTML+='\n现在是通过正则注册的URL,里面的参数是:'+num;
})
访问
#!before123end
输出:
现在是通过正则注册的URL,里面的参数是:undefined
ie7 不支持把?刚试了一下
新手提问.... 比如现在在HOME页面,在回调里面怎么去跳转其他的页面呢..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.