开发中记录的一些知识点
vue 父子组件相互调用: this.$parent.func(),this.$children.func()
js四舍五入: Math.round(100.3.1415926 * 100) / 100
js打开新窗口:
1、location.href = "javascript: window.open('http://www.dsiab.com', 'newwindow', height=768,width=1366,top=0,left=0)"
2、window.open("http://www.dsiab.com", "_blank", "toolbar=yes, status=no,height=768,height=400")
vue中通过@submit.native.prevent 阻止element form表单默认提交
发表评论 (审核通过后显示评论):