惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
LangChain Blog
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园_首页
T
Tailwind CSS Blog
P
Proofpoint News Feed
雷峰网
雷峰网
D
Darknet – Hacking Tools, Hacker News & Cyber Security
IT之家
IT之家
V
Vulnerabilities – Threatpost
阮一峰的网络日志
阮一峰的网络日志
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs
S
Schneier on Security
Security Archives - TechRepublic
Security Archives - TechRepublic
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
WordPress大学
WordPress大学
The Register - Security
The Register - Security
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
Project Zero
Project Zero
博客园 - 叶小钗
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
Latest news
Latest news
S
SegmentFault 最新的问题
C
Cyber Attacks, Cyber Crime and Cyber Security
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
L
LINUX DO - 最新话题
Google DeepMind News
Google DeepMind News
P
Privacy International News Feed
I
InfoQ
F
Fortinet All Blogs
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threatpost
T
Tenable Blog
B
Blog RSS Feed

Guyskk的博客

AI 编程=控制系统:BeecodeAI 的设计原理 把大模型当成晶体管:从阻抗匹配到集成运放的思维实验 控制论视角下的 AI 编码:二阶系统、放大器与注意力的最优分配 AI Coding 验证系统的第一性原理 AI Coding Team 管理笔记 从文本补全到状态机循环:重定义 AI Agent 的操作系统架构 分析 Claude Code 提示词的方法 - mitmproxy Claude Code 监督器:让 AI 主动把事情做好 我的AI大模型技术分享2025 三十而砺 - 反思我的创业 自宅创业 - #34 宝贝女儿出生,我当爸爸了 自宅创业 - #33 继续聊聊自媒体AI副业工具 自宅创业 - #32 新产品-自媒体副业工具 自宅创业 - #31 APP上架了,路在何方? 自宅创业 - #30 人机交互,打造AI写作神器 自宅创业 - #29 经验分享: 让AI输出结构化JSON数据 2023自宅创业年终总结 自宅创业 - #28 我在ChatGPT风口的创业总结 2022自宅创业总结,进入创业新阶段 自宅创业 - #27 蹭热点的ChatGPT小程序 自宅创业 - #26 开发果蔬时节APP 自宅创业 - #25 驾照到手 & 买车 自宅创业 - #24 继续独立开发艺爪付费 自宅创业 - #23 考驾照、忙碌的一个月 自宅创业 - #22 艺爪付费迭代 & 重回赣州 自宅创业 - #21 新产品艺爪付费上线内测 自宅创业 - #20 付费订阅后端完成 & 商标注册 自宅创业 - #19 继续开发,为网站App提供付费订阅 自宅创业 - #18 开始新产品,为网站App提供付费订阅 2021自宅创业10个月总结,我会再次挑战 自宅创业 - #17 代码重构,以及蚁阅的更新 自宅创业 - #16 半独立开发的第一个月 自宅创业 - #15 开始远程兼职 自宅创业 - #14 写订单系统后台 自宅创业 - #13 创业半年回顾 自宅创业 - #12 专注和效率问题 自宅创业 - 小程序迭代延期 + 卖猕猴桃 自宅创业 - The Mom Test 自宅创业 - 水果直销自营模式
Hami-Vuex开源了,哈密瓜味的Vuex!
2021-12-18 · via Guyskk的博客
const counterStore = hamiVuex.store({

    // 设置一个唯一名称,方便调试程序和显示错误信息
    $name: 'counter',

    // 定义状态
    $state: {
        count: 0,
    },

    // 定义一个 getter,和 Vue computed 类似
    get double() {
        return this.count * 2
    },

    // 定义一个函数,等价于 Vuex action
    increment() {
        // $patch 是内置的 Vuex mutation,用于更新状态
        this.$patch({
            count: this.count + 1
        })
    },
})

// 在 Vue 组件中使用
console.log(counterStore.count)
console.log(counterStore.increment())
console.log(counterStore.double)