(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
这是route配置
laughApp.config(['$routeProvider',function($routeProvider) {
$routeProvider.
when('/text', {
templateUrl : 'partials/text.html',
controller : 'TextListCtrl'
}).
when('/comic', {
templateUrl : 'partials/comic.html',
controller : 'ComicListCtrl'
}).
when('/img',{
templateUrl : 'partials/img.html',
controller : 'imgCtrl'
}).
otherwise({
redirectTo : '/text'
});
}]);
引入多说分享组件的模块
{{text.Title}}
{{text.Data}}
另外一个view也跟这个类似,但是第一次加载刷新的起左右,切了ngView以后就分享就不响应了。求解答!~
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号