温州-全栈-闲人
温州-全栈-闲人
The functions of trash are too few. We should need a nodejs global file permission, similar to `fs.lock()` or `fs.auth()`, to restrict file deletion and modification to a certain secure...
If I run this code at the beginning of the script`fs.lock('./');`. I will return an error when I run `fs.unlink('../a.json')`/`fs.write('../a.json')` It will be handled correctly when I run `fs.unlink('./b.json')` Until...
I have an immature idea ``` fs.lock = function(lockpath) { if (!lockpath && fs.unlink.lock) return (fs.unlink = fs.unlink.original); if (fs.unlink.lock) return (fs.unlink.lock = lockpath); var unlink = fs.unlink; fs.unlink =...
When I modify `Object`, `Array`, `Number`, `String`, the whole world should be wrong. I think `Object.prototype.a = 'not undefined'` is the unsafe operation.
I think a plugin should be small and perfect, not big and full. QS should focus on the various formats of stringfly and parse. For such requirements, whether to increase...
``` const toPath1 = pathToRegexp.compile("/three"); const toPath2 = pathToRegexp.compile("/first/:one/three"); const toPath3 = pathToRegexp.compile("/first/:one/second/:two/three"); function toPathGroup() { const pathObject = { ...args }; if (Object.hasOwnProperty("two")) return toPath3(pathObject); if (Object.hasOwnProperty("one")) return toPath2(pathObject);...
> No, I don't need it
我目前是这样用的,对不同的数据,Table有不同的结构,多定义几个样式覆盖上 ```typescript import styled from "styled-components"; /** 定义 **/ export const TableContainer = styled(Container)` padding-top: 8px; > .ant-table-wrapper { height: 100%; > .ant-spin-nested-loading { height: 100%; > .ant-spin-container { height:...
look it https://github.com/reactjs/reactjs.org/issues/5659
这个可以自定义使用一个Context实现 ```javascript const DisableContext = createContext(); function Page() { const [ disable, setDisable ] = useState(false); return ( ); } function FormPage() { const disable = useContext(DisableContext); return ( );...