当前位置:首页>面试真题>第七章(Vue 面试真题)

第七章(Vue 面试真题)

  • 2026-04-15 19:33:26
第七章(Vue 面试真题)

一、Vue 基础真题

1. Vue 的双向绑定原理?

参考答案:

Vue 2 使用 Object.defineProperty,Vue 3 使用 Proxy。

// Vue 2 Object.defineProperty
functiondefineReactive(obj, key, val) {
Object.defineProperty(obj, key, {
get() {
return val;
        },
set(newVal) {
            val = newVal;
update(); // 触发更新
        }
    });
}

// Vue 3 Proxy
functionreactive(obj) {
returnnewProxy(obj, {
get(target, key) {
track(target, key);
return target[key];
        },
set(target, key, value) {
            target[key] = value;
trigger(target, key);
        }
    });
}

2. Vue 的生命周期有哪些?

参考答案:

Vue 2:

  • beforeCreate → created → beforeMount → mounted → beforeUpdate → updated → beforeDestroy → destroyed

Vue 3:

  • setup → onBeforeMount → onMounted → onBeforeUpdate → onUpdated → onBeforeUnmount → onUnmounted
// Vue 3
import { onMounted, onUpdated, onUnmounted } from'vue';

exportdefault {
setup() {
onMounted(() => {
console.log('挂载完成');
        });
onUpdated(() => {
console.log('更新完成');
        });
onUnmounted(() => {
console.log('卸载完成');
        });
    }
}

3. Vue 的 computed 和 watch 的区别?

参考答案:

特性
computed
watch
缓存
适用场景
计算属性
监听数据变化
返回值
必须返回值
不需要
// computed - 有缓存
const double = computed(() => count.value * 2);

// watch - 监听数据变化
watch(count, (newVal, oldVal) => {
console.log('变化了', newVal, oldVal);
});

// 监听多个属性
watch([a, b], ([newA, newB]) => {
console.log(newA, newB);
});

// 深度监听
watch(obj, () => {}, { deeptrue });

4. Vue 组件通信方式有哪些?

参考答案:

  1. props / $emit: 父子通信
  2. $attrs: 父子通信(跳过props)
  3. $refs: 父子通信
  4. provide / inject: 祖先向后代传值
  5. event bus: 兄弟/跨级通信
  6. Vuex/Pinia: 全局状态管理
// provide / inject
// 祖先
provide('theme''dark');

// 后代
const theme = inject('theme');

// $attrs
// 父组件
<Childname="Tom"age="25" />

// 子组件
props: ['name']
console.log(this.$attrs// { age: '25' }

5. v-if 和 v-show 的区别?

参考答案:

特性
v-if
v-show
原理
DOM 删除/创建
CSS display
开销
适用场景
条件不常变化
频繁切换
<!-- v-if -->
<divv-if="show">内容</div>

<!-- v-show -->
<divv-show="show">内容</div>

二、Vue 进阶真题

6. Vue 3 的 Composition API 是什么?

参考答案:

Composition API 是 Vue 3 新增的 API,用函数方式组织组件逻辑。

import { ref, reactive, computed, watch, onMounted } from'vue';

exportdefault {
setup() {
// 响应式数据
const count = ref(0);
const state = reactive({ name'Tom' });

// 计算属性
const double = computed(() => count.value * 2);

// 监听
watch(count, (newVal) => {
console.log(newVal);
        });

// 生命周期
onMounted(() => {
console.log('mounted');
        });

return { count, state, double };
    }
}

7. Vue 3 的 ref 和 reactive 的区别?

参考答案:

// ref - 基础类型
const count = ref(0);
count.value = 1// 访问值需要 .value

// reactive - 对象类型
const state = reactive({
name'Tom',
age25
});
state.name = 'Jerry'// 直接访问

// ref 也支持对象,内部会调用 reactive
const obj = ref({ name'Tom' });
obj.value.name = 'Jerry'// 内部转为 reactive

8. Vue 的 keep-alive 是什么?

参考答案:

keep-alive 是缓存组件,避免重复渲染。

<keep-alive:include="['Home', 'About']":exclude="['Login']">
<component:is="currentComponent" />
</keep-alive>

<!-- 路由缓存 -->
<router-viewv-slot="{ Component }">
<keep-alive>
<component:is="Component" />
</keep-alive>
</router-view>

生命周期变化:

  • 首次进入:onMounted → onActivated
  • 再次进入:onActivated
  • 离开:onDeactivated

9. Vue 的 nextTick 是什么?

参考答案:

nextTick 等待 DOM 更新后执行回调。

// 修改数据
this.msg = 'Hello';

// 此时 DOM 还未更新
console.log(this.$refs.text); // 旧内容

// 使用 nextTick
this.$nextTick(() => {
console.log(this.$refs.text); // 新内容
});

// async/await 方式
asyncfunctionupdate() {
this.msg = 'Hello';
awaitthis.$nextTick();
console.log(this.$refs.text);
}

10. Vue 的 Mixin 是什么?

参考答案:

Mixin 是复用组件逻辑的方式。

// myMixin.js
exportdefault {
data() {
return {
name'Tom'
        }
    },
methods: {
sayHello() {
console.log('Hello');
        }
    }
}

// 使用
import myMixin from'./myMixin';

exportdefault {
mixins: [myMixin],
mounted() {
this.sayHello(); // Hello
    }
}

三、Vue 面试真题

11. Vue 的响应式原理?

参考答案:

Vue 2 使用 Object.defineProperty 劫持 getter/setter。

functionobserve(obj) {
if (typeof obj !== 'object' || obj === nullreturn;

Object.keys(obj).forEach(key => {
let value = obj[key];
defineReactive(obj, key, value);
    });
}

functiondefineReactive(obj, key, value) {
observe(value); // 递归监听

Object.defineProperty(obj, key, {
get() {
return value;
        },
set(newVal) {
if (newVal !== value) {
                value = newVal;
observe(newVal);
update(); // 通知更新
            }
        }
    });
}

Vue 3 使用 Proxy,性能更好。


12. Vue 的 diff 算法?

参考答案:

Vue 的 diff 算法是同层比较,时间复杂度 O(n)。

// patch 函数
functionpatch(oldVnode, newVnode) {
if (sameVnode(oldVnode, newVnode)) {
patchVnode(oldVnode, newVnode);
    } else {
replaceNode(oldVnode, newVnode);
    }
}

functionsameVnode(a, b) {
return a.key === b.key && a.tag === b.tag;
}

优化:

  • 使用 key 识别节点
  • 列表对比使用双端比较

13. Vuex 的工作流程?

参考答案:

State → Getter → Component
   ↑              ↓
   └──── Mutation ← Action
// state
state: { count0 }

// mutation
mutations: {
increment(state) {
        state.count++;
    }
}

// action
actions: {
increment({ commit }) {
commit('increment');
    }
}

// getter
getters: {
doublestate => state.count * 2
}

14. Vue 3 的 setup 函数?

参考答案:

setup 是 Composition API 的入口。

exportdefault {
setup(props, { attrs, slots, emit, expose }) {
// props 需要定义
const name = ref('Tom');

// 暴露给模板
return { name };

// 暴露给父组件
expose({ name });
    }
}

15. Vue 3 和 Vue 2 的区别?

参考答案:

特性
Vue 2
Vue 3
响应式
Object.defineProperty
Proxy
API
Options API
Composition API
生命周期
beforeCreate/created
setup
性能
TypeScript
打包体积

16. Vue 组件通信方式?

参考答案:

// 1. Props / $emit
// 父组件
<Child :value="msg" @change="handleChange" />

// 子组件
props: { valueString }
this.$emit('change''new value')

// 2. Provide / Inject
// 父组件
provide: { name'Tom' }

// 子组件
inject: ['name']

// 3. Event Bus
// bus.js
const bus = newVue();
exportdefault bus;

// 使用
bus.$emit('event', data);
bus.$on('event', callback);

// 4. Vuex / Pinia
// 5. ref / defineExpose

17. Vue 路由守卫?

参考答案:

const router = newVueRouter({
routes: [
        {
path'/user',
componentUser,
beforeEnter(to, from, next) => {
next();
            }
        }
    ]
});

// 全局守卫
router.beforeEach((to, from, next) => {
const isAuth = localStorage.getItem('token');
if (isAuth || to.path === '/login') {
next();
    } else {
next('/login');
    }
});

// 组件内守卫
beforeRouteEnter(to, from, next) {},
beforeRouteUpdate(to, from, next) {},
beforeRouteLeave(to, from, next) {}

18. Vue 自定义指令?

参考答案:

// 全局指令
Vue.directive('focus', {
inserted(el) {
        el.focus();
    }
});

// 组件指令
directives: {
focus: {
inserted(el) {
            el.focus();
        }
    }
}

// 使用
<input v-focus />

19. Vue 过滤器?

参考答案:

// 定义过滤器
filters: {
currency(value) {
return'¥' + value.toFixed(2);
    }
}

// 使用
{{ price | currency }}

// 链式
{{ price | currency | lowercase }}

20. Vue 动态组件?

参考答案:

<!-- is 属性 -->
<component :is="currentComponent" />

<!-- keep-alive 缓存 -->
<keep-alive>
    <component :is="currentComponent" />
</keep-alive>

21. Vue 异步组件?

参考答案:

// 方式1: defineAsyncComponent
import { defineAsyncComponent } from'vue';
constAsyncComp = defineAsyncComponent(() =>
import('./AsyncComp.vue')
);

// 方式2: 组件定义
exportdefault {
components: {
AsyncComp() =>import('./AsyncComp.vue')
    }
}

22. Vue 混入 mixins?

参考答案:

// mixin.js
exportdefault {
data() {
return { name'Tom' }
    },
methods: {
hello() {
console.log(this.name);
        }
    }
}

// 使用
import myMixin from'./mixin';
exportdefault {
mixins: [myMixin]
}

23. Vue extend?

参考答案:

// 创建组件构造器
constProfile = Vue.extend({
template'<p>{{ firstName }} {{ lastName }}</p>',
data() {
return { firstName'Tom'lastName'Jack' }
    }
});

// 创建实例
newProfile().$mount('
#app');

24. Vue $nextTick?

参考答案:

methods: {
asyncupdate() {
this.msg = 'Hello';

// DOM 更新后执行
this.$nextTick(() => {
console.log(this.$refs.input.value);
        });

// async/await 写法
awaitthis.$nextTick();
console.log(this.$refs.input.value);
    }
}

25. Vue 响应式原理?

参考答案:

Vue 2 使用 Object.defineProperty,Vue 3 使用 Proxy。

// Vue 2
functiondefineReactive(obj, key, val) {
Object.defineProperty(obj, key, {
get() {
return val;
        },
set(newVal) {
if (newVal !== val) {
                val = newVal;
update();
            }
        }
    });
}

// Vue 3
const handler = {
get(target, key) {
track(target, key);
returnReflect.get(target, key);
    },
set(target, key, value) {
Reflect.set(target, key, value);
trigger(target, key);
    }
};

26. Vue computed 和 watch?

参考答案:

computed: {
fullName() {
returnthis.firstName + ' ' + this.lastName;
    },
// setter
fullName: {
get() {
returnthis.firstName + ' ' + this.lastName;
        },
set(val) {
const [first, last] = val.split(' ');
this.firstName = first;
this.lastName = last;
        }
    }
}

watch: {
msg(newVal, oldVal) {
console.log(newVal, oldVal);
    },
// 深度监听
obj: {
handler(newVal) {},
deeptrue
    },
// 立即执行
msg: {
handler() {},
immediatetrue
    }
}

27. Vue slot?

参考答案:

<!-- 父组件 -->
<Child>
    <template v-slot:header>
        <h1>标题</h1>
    </template>

    <p>默认内容</p>

    <template v-slot:footer>
        <p>底部</p>
    </template>
</Child>

<!-- 子组件 -->
<div>
    <slot name="header"></slot>
    <slot></slot>
    <slot name="footer"></slot>
</div>

28. Vue 条件渲染?

参考答案:

<!-- v-if / v-else-if / v-else -->
<div v-if="type === 'A'">A</div>
<div v-else-if="type === 'B'">B</div>
<div v-else>C</div>

<!-- v-show -->
<div v-show="show">显示/隐藏</div>

<!-- 区别:v-if 真正渲染,v-show 始终渲染并使用 display -->

29. Vue 列表渲染?

参考答案:

<!-- 数组 -->
<li v-for="(item, index) in items" :key="index">
    {{ index }} - {{ item.name }}
</li>

<!-- 对象 -->
<li v-for="(value, key, index) in obj" :key="key">
    {{ key }}: {{ value }}
</li>

<!-- 组件 -->
<my-component
    v-for="item in items"
    :key="item.id"
    :item="item"
/>

30. Vue 自定义 v-model?

参考答案:

<!-- 子组件 -->
<script>
export default {
    model: {
        prop: 'value',
        event: 'change'
    },
    props: {
        value: String
    },
    methods: {
        update(val) {
            this.$emit('change', val);
        }
    }
}
</script>

<!-- 使用 -->
<input :value="value" @input="update($event.target.value)" />

📌 面试重点:双向绑定原理、生命周期、Composition API、响应式原理是高频考点。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-16 04:20:08 HTTP/2.0 GET : https://15386.cn/a/464669.html
  2. 运行时间 : 0.087663s [ 吞吐率:11.41req/s ] 内存消耗:4,602.58kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=588804596bb2d7301963ba51c41f0bfa
  1. /yingpanguazai/ssd/ssd1/www/no.15386.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/no.15386.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/no.15386.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/no.15386.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/no.15386.cn/runtime/temp/97c957f747c268aee476c4e16775dd7c.php ( 12.06 KB )
  140. /yingpanguazai/ssd/ssd1/www/no.15386.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000540s ] mysql:host=127.0.0.1;port=3306;dbname=no_15386;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000714s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000311s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000258s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000579s ]
  6. SELECT * FROM `set` [ RunTime:0.000223s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000523s ]
  8. SELECT * FROM `article` WHERE `id` = 464669 LIMIT 1 [ RunTime:0.000563s ]
  9. UPDATE `article` SET `lasttime` = 1776284408 WHERE `id` = 464669 [ RunTime:0.000861s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 65 LIMIT 1 [ RunTime:0.000232s ]
  11. SELECT * FROM `article` WHERE `id` < 464669 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000381s ]
  12. SELECT * FROM `article` WHERE `id` > 464669 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000472s ]
  13. SELECT * FROM `article` WHERE `id` < 464669 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.004580s ]
  14. SELECT * FROM `article` WHERE `id` < 464669 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001365s ]
  15. SELECT * FROM `article` WHERE `id` < 464669 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.004464s ]
0.089293s