取消响应式的方法

取消响应式的方法

export default {
    
    
		//1.方法一
		computed: {
    
    
			funList: () => [{
    
    xxxx:"xxxx"},{
    
    xxxx:"xxxx"}],
		},
		data() {
    
    
		//2.方法二
		this.funList=[{
    
    xxxx:"xxxx"},{
    
    xxxx:"xxxx"}]
			return {
    
    
				//1.方法三
				funList:Object.freeze([{
    
    xxxx:"xxxx"},{
    
    xxxx:"xxxx"}])
			}
		},

欢迎补充~~~

猜你喜欢

转载自blog.csdn.net/weixin_51014776/article/details/129266678