删删写写,回回忆忆,虽无法行云流水,却也可碎言碎语。

  • Jon
    注意:升级flutter是需要翻墙的,如果翻不了墙请参考https://flutter.dev/community/china

    2020-04-17 14:03

      昵称: 验证码:
    • Jon
      flutter 查看版本号flutter --version; 查看当前分支flutter channel在;切换分支flutter channel beta;升级flutter upgrade;诊断flutter doctor

      2020-04-17 13:38

        昵称: 验证码:
      • Jon
        flutter 安装依赖包命令 flutter packages get 获取pubspec.yaml文件中列出的所有依赖包 flutter packages upgrade 获取pubspec.yaml文件中列出的所有依赖包的最新版本

        2020-04-17 13:33

          昵称: 验证码:
        • Jon
          http请求头 headers 中的 Content-Type 有三种类型值分别是 1. 'application/json'; 2. 'multipart/form-data'; 3. 'application/x-www-form-urlencoded';

          2020-04-17 13:17

            昵称: 验证码:
          • Jon
            angular material 文档的 mat-menu 组件api中有一个错误,panelClass 属性无效,应该直接设置 class 即可

            2020-04-16 14:23

              昵称: 验证码:
            • Jon
              通过 angular 使用 cesium 的文档 https://docs.angular-cesium.com/getting-started/installation

              2020-04-15 11:04

                昵称: 验证码:
              • Jon
                angular material 弹窗关闭后焦点会自动恢复到先前聚焦的元素,若想取消聚焦,设置open方法第二个对象中添加 restoreFocus: false 即可

                2020-04-15 10:18

                  昵称: 验证码:
                • Jon
                  material字体图标库下载到本地的git仓库 https://github.com/google/material-design-icons

                  2020-04-14 16:43

                    昵称: 验证码:
                  • Jon
                    IE条件注释在ie10及以上是无效的,@cc_on, 支持ie11以前浏览器解释,即ie11以前跳转到ie升级页 <script>/*@cc_on 小于ie11的js代码 @*/</script>

                    2020-04-14 13:48

                      昵称: 验证码:
                    • Jon
                      JS中经常遇到字符串换行,这时除了拼接外,还可以通过\,即在每行字符串后加入“\”表示换行

                      2020-04-14 13:30

                        昵称: 验证码:
                      • Jon
                        js中~~它代表双非按位取反运算符。需要注意,对于正数,它向下取整;对于负数,向上取整;非数字取值为0 举例: ~~1.9; ~~-1.9; ~~true; 这3个值为1; ~~NaN; ~~0; ~~{}; ~~(1/0); ~~Infinity; 这5个值为0

                        2020-04-13 10:35

                          昵称: 验证码:
                        • Jon
                          天下风云出我辈,一入江湖岁月催, 皇图霸业谈笑中,不胜人生一场醉。 提剑跨骑挥鬼雨,白骨如山鸟惊飞。 尘事如潮人如水,只叹江湖几人回。

                          2020-04-12 10:50

                            昵称: 验证码:
                          • Jon
                            你把道德封上了高高的神坛,代价是没有第二人会愿意再走上去! ——梁秋阳

                            2020-04-11 23:29

                              昵称: 验证码:
                            • Jon
                              js外部获取iframe中的节点方法 document.getElementById('iframeID').contentWindow.document.getElementsByTagName('div');

                              2020-04-11 09:43

                                昵称: 验证码:
                              • Jon
                                date格式为2020-04-09T16:17:44.730z或者2020-04-09T16:17:44.739000+08:00在angular中使用 {{ obj.date | date:'yyyy-MM-dd HH:mm:ss' }}转换为正确时间,考虑到有时区不能直接截取

                                2020-04-10 17:24

                                  昵称: 验证码:
                                • Jon
                                  正则判断input中输入必须是url格式 pattern="((http|ftp|https)://)([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,9})"

                                  2020-04-09 16:54

                                    昵称: 验证码:
                                  • Jon
                                    判断字符串是否以某个字符开头 1、'abc'.substr(0, 2) === 'ab'; 2、'abc'.indexOf('ab') === 0; 3、/^ab.*$/.test('abc'); 4、'abc'.startsWith('ab'); // es6 ie不支持

                                    2020-04-09 11:27

                                      昵称: 验证码:
                                    • Jon
                                      angular ng build打包参数--namedChunks=true 作用是在懒加载打包文件后显示模块名称以便于分析文件大小。

                                      2020-04-08 16:29

                                        昵称: 验证码:
                                      • Jon
                                        angular get传参可以是对象如下 const paramsObj = { limit: 20, offset: 0 } return this.http.get('url', {params: paramsObj});

                                        2020-04-08 16:22

                                          昵称: 验证码:
                                        • Jon
                                          请求时禁止缓存的方法: 在请求headers中添加'Cache-Control': 'max-age=0'

                                          2020-04-08 13:30

                                            昵称: 验证码:
                                          皖ICP备15010162号-1 ©2015-2022 知向前端
                                          qq:1614245331 邮箱:13515678147@163.com Powered by emlog sitemap