【huas】发布的文章    
    
        
        
        
            
            
                
                    
                    huas                
            
            
                
                    
                    0                
            
         
        
        
        
            const a = reactive({
  t: 1,
});
console.log(unref(a));
console.log({ ...a });输出Proxy(Object) {t: 1}
{t: 1}可以看到unref是proxy,这还是代理状态,通过...解包可以变成普通对象。如果是对unref(a)的t修改,那a.t一样会被改变。根本...        
    
    
        
        
        
            
            
                
                    
                    huas                
            
            
                
                    
                    0                
            
         
        
        
        
            export const ErrorPageRoute = {
    path: '/:path(.*)*', 假设为A
    name: 'ErrorPage',
    component: HelloWorld,
    meta: {
        title: 'ErrorPage',
        hideBreadcrumb: t...        
    
    
        
        
        
            
            
                
                    
                    huas                
            
            
                
                    
                    0                
            
         
        
        
        
            下载php https://windows.php.net/downloads/releases/archives/解压,复制php.ini-development重命名为php.ini修改extension_dir="H:\phpstudy_pro\Extensions\php\php7.4.20nts\ext"开启拓展extension=bz2
e...        
    
    
        
        
        
            
            
                
                    
                    huas                
            
            
                
                    
                    0                
            
         
        
        
        
            先来看一下,源代码改忘了,差不多看看class Authenticate extends Middleware
{
    protected function redirectTo($request)
    {
        return route("/login");
    }
}查看继承的父类得知<?php
...        
    
    
        
        
        
            
            
                
                    
                    huas                
            
            
                
                    
                    0                
            
         
        
        
        
            今天看到了一个骚写法,之前几乎没用到过类型判断,好奇所以查了一下/**
 * @description: 判断值是否未某个类型
 */
export function is(val: unknown, type: string) {
  return toString.call(val) === `[object ${type}]`;
}
/**
 ...