架设有这么三个Controller,Golbal在外面,另外两个在里面
* GlobalController
* UserListController
* UserDetailController
UserListController触发一个事件change_user冒泡到GlobalController中
$scope.selectUser = function(user) {
$scope.active_uid = user.uid;
$scope.$emit('change_user',user.uid,user);//后面可以传若干个参数
};
GlobalController响应这个事件
$scope.$on('change_user&
JS:
if(window.devicePixelRatio > 1){
//是retina屏幕
}
CSS:
@media screen and (-webkit-min-device-pixel-ratio: 1.5),
screen and (-moz-min-device-pixel-ratio: 1.5) ,
screen and (-ms-min-device-pixel-ratio: 1.5) ,
screen and (-o-min-device-pixel-ratio: 1.5) ,
screen and (min-device-pixel-ratio: 1.
问题
QQ版本:5.6 for iPhone
首先是这样一段代码,正常情况下点击A标签location的hash会变成#one,并触发hashchange事件,页面不会刷新。
再执行history.back()或点击浏览器的后退按钮时,会再次触发hashchange事件,页面也不会刷新
<a href="#one">test</a>
<script>
window.onhashchange = function(
$begin = '2015-07-18';
$end = '2015-07-20';
$ts = strtotime($begin);
$end_ts = strtotime($end);
echo "DATE \t";
$symbolList = array('USD', 'CAD', 'EUR', 'HKD&
-webkit-mask的写法和background一样,效果是在background上添加一层蒙板,只能用mask的图片透明度影响background的透明度,无法影响background的rgb色值。
-webkit-mask: url(icon.png) -125px 0;
-webkit-mask-size: 150px 100px;
background: none orange;