会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
25
下一页
2020年10月10日
JS封装 随机数
摘要: // 手写可控rendom()函数 let seed = new Date(); function random(){ let x = Math.sin(seed++) * 10000; return x - Math.floor(x); } console.log(random()); // 洗牌
阅读全文
posted @ 2020-10-10 10:05 wing1377
阅读(266)
评论(0)
推荐(0)
2020年10月9日
AngularJS 1.0 知识点整理
摘要: 概述 概述 2009年诞生,后被Google收购 适用于以数据操作为主的SPA应用 与jQuery的关系:基于jQ又高于jQ 所有的操作不再是以元素为中心,而是以业务数据为中心 MVC模式 Model:模型,即业务数据 由保存在一定范围内的变量来担当 声明模型数据的两种方法 使用ngInit指令声明
阅读全文
posted @ 2020-10-09 11:12 wing1377
阅读(146)
评论(0)
推荐(0)
2020年10月8日
jQuery 全屏滚动插件 fullpage
摘要: jQuery全屏滚动插件fullPage.js fullPage.js 是一个基于 jQuery 的插件,它能够很方便、很轻松的制作出全屏网站,主要功能有: 支持鼠标滚动 支持前进后退和键盘控制 多个回调函数 支持手机、平板触摸事件 支持 CSS3 动画 支持窗口缩放 窗口缩放时自动调整 可设置滚动
阅读全文
posted @ 2020-10-08 17:33 wing1377
阅读(200)
评论(0)
推荐(0)
AngularJS 1.0 学习笔记
摘要: 软件工程 软件设计原则 避免重复原则(DRY-不要重复代码) 编程的最基本原则是避免重复。 在程序代码中总会有很多结构体,如循环、函数、类等等。 一旦你重复某个语句或概念,就会很容易形成一个抽象体 造价公式:单位工资 X 3倍 X 开发人数 X 天数 抽象原则 程序代码中每一个重要的功能,只能出现在
阅读全文
posted @ 2020-10-08 09:20 wing1377
阅读(342)
评论(0)
推荐(0)
AngularJS 1.0案例 进度条
摘要: angular.module('M13', ['ng']). controller('C13', function($scope, $interval){ let percentage = 0; $scope.myStyle = {width: '0%'}; let t = $interval(fu
阅读全文
posted @ 2020-10-08 08:33 wing1377
阅读(148)
评论(0)
推荐(0)
AngularJS 1.0轮播图
摘要: angular.module('M12', ['ng']). controller('C12', function($scope, $interval){ $scope.num = 1; $scope.pro = function(){ $interval.cancel(t); $scope.num
阅读全文
posted @ 2020-10-08 08:32 wing1377
阅读(126)
评论(0)
推荐(0)
AngularJS 1.0案例 取消全选
摘要: <section class="container" ng-controller="C18"> <table class='table table-bordered'> <thead> <tr> <th>选择</th> <th>姓名</th> <th>工资</th> <th>操作</th> </tr
阅读全文
posted @ 2020-10-08 08:31 wing1377
阅读(141)
评论(0)
推荐(0)
AngularJS 1.0 案例 购物车计算器
摘要: <!DOCTYPE html> <html lang="en" ng-app="M20"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <ti
阅读全文
posted @ 2020-10-08 08:29 wing1377
阅读(141)
评论(0)
推荐(0)
2020年10月4日
JS获取文件名 - 字符串操作 substring() indexOf()
摘要: $scope.imgSrc = '1.jpg'; $scope.next = function(){ var num = parseInt($scope.imgSrc.substring(0,$scope.imgSrc.indexOf('.'))); num = num<4 ? num+1 : 1;
阅读全文
posted @ 2020-10-04 19:12 wing1377
阅读(216)
评论(0)
推荐(0)
Javascript毫秒数转化为时间格式
摘要: 获取毫秒数 new Date().getTime() 毫秒转化为时间格式(时间格式化方法) Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+":
阅读全文
posted @ 2020-10-04 07:29 wing1377
阅读(503)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
25
下一页
公告