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

推荐订阅源

Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
C
Cisco Blogs
Cloudbric
Cloudbric
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
V2EX - 技术
V2EX - 技术
H
Heimdal Security Blog
S
Security Affairs
L
Lohrmann on Cybersecurity
Hacker News - Newest:
Hacker News - Newest: "LLM"
Simon Willison's Weblog
Simon Willison's Weblog
WordPress大学
WordPress大学
小众软件
小众软件
Security Latest
Security Latest
AWS News Blog
AWS News Blog
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
F
Full Disclosure
S
Schneier on Security
L
LangChain Blog
MyScale Blog
MyScale Blog
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
Google Online Security Blog
Google Online Security Blog
Scott Helme
Scott Helme
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
A
Arctic Wolf
Martin Fowler
Martin Fowler
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
The Register - Security
The Register - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园_首页
Latest news
Latest news
F
Fortinet All Blogs
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
Hacker News: Ask HN
Hacker News: Ask HN

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)