上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: 关于split splice slice的区别 split 字符串方法,不改变原值。将字符串转化为数组 splice 数组方法,改变原值。删除或修改数组的值,有三个参数 第一个参数:必需。整数,规定添加/删除项目的位置,使用负数可从数组结尾处规定位置。 第二个参数:必需。要删除的项目数量。如果设置为 阅读全文
posted @ 2020-09-03 07:18 wing1377 阅读(140) 评论(0) 推荐(0) 编辑
摘要: // 实时时间 var nowTime= function(value){ function dateFormat(date, format) { if (typeof date "string") { var mts = date.match(/(\/Date\((\d+)\)\/)/); if 阅读全文
posted @ 2020-09-02 19:35 wing1377 阅读(163) 评论(0) 推荐(0) 编辑
摘要: var msg= 'hello'; var msg= msg.split('').reverse().join(''); console.log(msg); 阅读全文
posted @ 2020-09-01 17:40 wing1377 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Angular框架结构 概述 Angular是一套用于构建用户界面的 JavaScript 框架。 由 Google 开发和维护, 主要被用来开发单页面应用程序。 特性 MVVM(数据驱动视图思想) 组件化 模块化 指令 服务 依赖注入 TypeScript 。。。 Angular 项目目录结构 项 阅读全文
posted @ 2020-08-30 15:37 wing1377 阅读(621) 评论(0) 推荐(0) 编辑
摘要: angular CLI简介 Angular"全家桶"式的设计思路 @angular/cli工具里面集成了日常开发需要使用的所有Node模块 使用@angular/cli可以大幅度降低搭建开发环境的难度 Angular CLI是Angular官方开发的一个脚手架工具,专门用来构建Angular应用程序 阅读全文
posted @ 2020-08-30 08:59 wing1377 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 问题: 在终端输入: npm i -g cnpm --registry=https://registry.npm.taobao.org 终端反馈: `npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! errno UNABLE_TO_VERI 阅读全文
posted @ 2020-08-29 18:24 wing1377 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Vue 指令 基本语法 <body> <section id="app"> <div>{{msg}}</div> <div>{{1+3+msg}}</div> <div v-text='msg'></div> </section> </body> <script> var vm = new Vue( 阅读全文
posted @ 2020-08-29 16:31 wing1377 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>双向数据绑定</t 阅读全文
posted @ 2020-08-29 08:05 wing1377 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type='text/javascript' src='./js/jquery.js'></script> <script type='text/ 阅读全文
posted @ 2020-08-29 07:26 wing1377 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 基本设置 <head>声明中的viewport <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> width 可设定数值,或者指定为device-width(设备宽度) hei 阅读全文
posted @ 2020-08-27 15:16 wing1377 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页