angular js及时获取数据值

var directiveData = app.directive("directiveP2", function () {
return {
link:function postLink(scope,lEle,lAttr) {
lAttr.$observe('attrDd', function(value) {
YTpageData.bodyAttr.bgMusic = value;
console.log(YTpageData)
});
}
};
});

posted on 2015-01-07 21:11  wuye1200  阅读(238)  评论(0编辑  收藏  举报

导航