许了杭
许了杭
Hi all, I'm using **mithril 2.2.2** with **tsconfig: "strict: true"** and try to implement two generic components: ```typescript import * as m from "mithril"; interface Placeholder { placeholder: T; }...
I running this code on `purs 0.14.5` and `spago 0.20.3`: ```purescript module Main where import Prelude import Data.HashMap (HashMap, empty, insert) import Effect (Effect) import Effect.Console (logShow) type MyHash =...
这个功能一直都有,不知道为何没有放出来。
Hi all. I am using Racket 8.7 on debian bookworm, and trying to connect to postgresql 15(from docker image postgresql:15). the database is deployed well, and I can connect it...
Hi, all. I am using emacs 28.2 on debian stable (bookworm), and `purescript-mode` is installed via `use-package`: ```elisp (use-package purescript-mode :ensure t) (use-package psc-ide :ensure t) ``` then I open...
淘宝“宝贝详情页”上,有个跟卖家聊天的按钮,点击之后可以跟卖家直接聊天。 现在考虑这样一个场景,如果点击聊天之后,卖家下面的“联系我”变成“正在联系”,然后弹出聊天窗口,关闭聊天窗口后恢复成“联系我”。 从redux方面来看,它像个巨大的观察者,不管是界面变化还是用户变化,它都会进行观察,如果需要对应的数据,只要订阅到需要的部分就行了,这个过程发生在组件中。 例如点击按钮: ```javascript // “详情页” this.watch("change", prop => { if ("chatting" === prop.chat) { this.$chat.text("正在联系"); } else { this.$chat.text("联系我"); } }); this.$chatBtn.click(_ => dispatch({ type: "chat", value: "chatting"...
目前运行在docker postgres:17版本之上,以zhparser提供dockerfile编译出来的新镜像上运行。 测试**我来看望大家**这句时,分词的结果好像不大对: ```sql # select * from ts_debug('china', '我来看望大家'); alias | description | token | dictionaries | dictionary | lexemes -------+----------------+-------+--------------+------------+--------- r | pronoun,代词 | 我 | {} |...