TypeScript has 'interface' and 'type', so when to use which? interface hasName { firstName: string; lastName: string; } interface hasAddress { address: string } type Player = (hasName...
在laravel发现有些类可以直接use 类名,就能使用了,例如use db;就可以使用db类了,问题是db这个类并不在根命名空间,这里面实际就是用到了别名。 先通过如下例子来分析基本原理 建立如下文件upload.php,内容为 &...