上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: SvelteKit 连接微信支付通常需要以下步骤: 前端部分 创建支付按钮:在 SvelteKit 的页面或组件中,创建一个按钮用于触发微信支付。例如在 src/routes/+page.svelte 中: <script> import { onMount } from 'svelte'; let 阅读全文
posted @ 2025-01-19 20:13 卓能文 阅读(12) 评论(0) 推荐(0) 编辑
摘要: import { createOpenAI } from '@ai-sdk/openai'; import { streamText } from 'ai'; const openai = createOpenAI({ apiKey: 'sk-...', baseURL: 'https://...' 阅读全文
posted @ 2025-01-18 15:51 卓能文 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 在 PocketBase 中,集合类似于传统数据库中的表,用于存储特定类型的数据。你可以通过 PocketBase 的管理界面或者使用 SDK 来定义集合。 通过管理界面创建集合 登录到 PocketBase 管理界面: 打开你的 PocketBase 实例,并使用管理员账号登录。 导航到 "Col 阅读全文
posted @ 2025-01-17 11:04 卓能文 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 设置style <script lang="ts"> let count: number = $state(0); const decrement = () => { count -= 1; }; const increment = () => { count += 1; }; </script> 阅读全文
posted @ 2025-01-16 20:38 卓能文 阅读(4) 评论(0) 推荐(0) 编辑
摘要: go install github.com/nao1215/gup@latest gup update 阅读全文
posted @ 2025-01-04 23:39 卓能文 阅读(11) 评论(0) 推荐(0) 编辑
摘要: go minify是一款优秀的web相关文件压缩工具,从本人简单使用效果来看,js压缩比terser更好。 安装: go install github.com/tdewolff/minify/v2/cmd/minify@latest 使用: minify -r -o dest src/ 将src目录 阅读全文
posted @ 2024-12-31 16:03 卓能文 阅读(15) 评论(0) 推荐(0) 编辑
摘要: vite.config.ts: import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ build: { minify: true, target: "esnext" 阅读全文
posted @ 2024-12-29 19:27 卓能文 阅读(8) 评论(0) 推荐(0) 编辑
摘要: eframe_template是egui的一个模板示例程序。 rust-toolchain: # If you see this, run "rustup self update" to get rustup 1.23 or newer. # NOTE: above comment is for o 阅读全文
posted @ 2024-12-24 16:07 卓能文 阅读(9) 评论(0) 推荐(0) 编辑
摘要: implementation("io.ktor:ktor-client-cio:3.0.3") package org.example import io.ktor.client.HttpClient import io.ktor.client.engine.cio.* import io.ktor 阅读全文
posted @ 2024-12-21 19:17 卓能文 阅读(18) 评论(0) 推荐(0) 编辑
摘要: build.gradle.kts: import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrain 阅读全文
posted @ 2024-12-20 11:37 卓能文 阅读(7) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页
点击右上角即可分享
微信分享提示