![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js 下载链接
y~ll~y
这个作者很懒,什么都没留下…
展开
-
watch监听
1.watch监听对象var obj = { ‘name’:‘小明’, ‘age’:18 }监听对象watch:{obj:{ deep:true, handler:fucntion (newVal,oldVal){ console.log(newVal) } }}监听对象的属性watch:{obj.name:{deep:true,handler:function (newVal,oldVal){console.log(newVal) }原创 2020-07-08 09:31:11 · 121 阅读 · 0 评论 -
JS通过window location href下载文件
JS通过window location href下载文件<div> <span ng-click="downloadFile(url)">文件下载</span> </div>$scope.downloadFile = function(url){ window.location.href = 'url'}转载 2020-05-23 17:22:22 · 6237 阅读 · 0 评论