摘要: 1.配置node_modules/webpack-dev-server/lib/Server.js 将425行return false; 改为return true; 2.配置package.json为 “start”: “ng serve –host 0.0.0.0”. 阅读全文
posted @ 2018-06-15 15:22 happiness木木 阅读(250) 评论(0) 推荐(0) 编辑
摘要: JSON(JavaScript Object Notation)和JSONP(JSON with Padding)虽然只有一个字母的差别,但其实他们根本不是一回事儿 JSON是一种数据交换格式,而JSONP是一种依靠开发人员的聪明才智创造出的一种非官方跨域数据交互协议。我们拿最近比较火的谍战片来打个 阅读全文
posted @ 2018-05-24 15:00 happiness木木 阅读(303) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"><head><meta charset="UTF-8"><title>倒计时</title><style type="text/css">@import url(http://fonts.googleapis.com/css?family 阅读全文
posted @ 2018-05-24 14:47 happiness木木 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 参考地址: https://sweetalert.js.org/guides/ 阅读全文
posted @ 2018-05-02 17:15 happiness木木 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 如此之后就在package.json中出现: 引用 阅读全文
posted @ 2018-03-30 14:50 happiness木木 阅读(69) 评论(0) 推荐(0) 编辑
摘要: inquiry(ca) { var starter: any = $("#startime").val(); var ender: any = $("#endtime").val(); //开始时间不能小于结束时间 var start=new Date(starter.replace("-", "/ 阅读全文
posted @ 2018-03-27 18:53 happiness木木 阅读(297) 评论(0) 推荐(0) 编辑
摘要: <div class="col-md-10"> <div ng-show="loading">正在加载数据...</div> <div> <div class="change col-xs-12 col-sm-12"> <div id="main" style="height:500px;width 阅读全文
posted @ 2018-03-20 17:28 happiness木木 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 同一个项目想要分别部署两个环境,测试环境和生产环境 正常打包命令, ng build --prod --bh /dist/ 这样打出的包就叫做dist的文件夹部署在测试环境。 之后修改域名后想要重新打不同的包,部署在生产环境中运行 修改如下步骤,就能在同一项目中打出多个包且互不影响。 找到tscon 阅读全文
posted @ 2018-03-13 18:35 happiness木木 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //初始存数据 $http.get("querySportteryLeagues.do") .success(function (result) { localStorage.setItem ("a",result); }) $("#endDate").blur(function(){ if($(" 阅读全文
posted @ 2018-03-13 18:25 happiness木木 阅读(427) 评论(0) 推荐(0) 编辑
摘要: json格式: [ { "time":"12:00", "num":[ { "a":"10", "b":"2", "c":"6" } ] }, { "time":"13:00", "num":[ { "a":"100", "b":"30", "c":" 阅读全文
posted @ 2018-03-13 18:19 happiness木木 阅读(137) 评论(0) 推荐(0) 编辑