# blog **Repository Path**: dansj/blog ## Basic Information - **Project Name**: blog - **Description**: blog项目前端页面 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-05-28 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # blog This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh pnpm install ``` ### Compile and Hot-Reload for Development ```sh pnpm dev ``` ### Compile and Minify for Production ```sh pnpm build ``` ``` let queue = new createjs.LoadQueue(true); queue.on('progress', handleProgress); queue.on("complete",()=>{ }) queue.loadFile({id:"toff",src:"/src/assets/font/f.woff2"}) queue.loadFile({id:"toff",src:"/src/assets/font/fojiya.ttf"}) queue.load(); function handleProgress() { let num = `${Math.floor(queue.progress * 100)}%`; // queue.progress 是 'progress' 监听事件所返回的,它介于0到1之间,全部加载完成的时候结果为1,这里主要是处理这个数值按比例在1-100之间呈百分比显示。 console.log(num) } ```