摘要:
在directive中定义组件,在ng-src错误时,调用err-src. app.directive('errSrc',function() { return { link: function(scope, element, attrs) { if(attrs.src='undefined'){ 阅读全文
摘要:
通过$ionicLoadingConfig设置默认效果 app.constant('$ionicLoadingConfig', { template: '<img src="img/loadinging.gif" style="border:none;width:100px;height:100px 阅读全文
摘要:
html代码: <div id="contentHolder"> <video id="video" width="100%" height="527px" autoplay></video> <button id="snap" style="display:none">拍照</button> <b 阅读全文