可能大家关心的不是sourcemap的核心,具体是优化了哪些,里面执行是什么 大家最关心的应该是执行速度,以及真正加载后,js文件的大小,这里贴一下我的实例,以及加载对比 1. development 模式下 选择 cheap-module-eval-source-map,这里能生成 2. prod ...
分类:
Web程序 时间:
2019-10-29 09:46:36
阅读次数:
97
官方-阿里云服务器2折起,10月主机爆款限时抢购,点击链接购买哟:https://www.aliyun.com/acts/limit-buy?spm=5176.11544616.khv0c5cu5.1.121523e8DOOghg&userCode=fp9ccf07 ...
分类:
其他好文 时间:
2019-10-28 14:31:57
阅读次数:
46
传送门 "Luogu" 解题思路 贪心地想一想,我们肯定要让凳子去给价格越高的商品打半价,那么我们就先按照价格排序,但是要优先把凳子排在前面。 然后我们发现一条凳子肯定只能给价格小于等于它本身的物品打半价,所以我们就尽量把所有凳子单独放一个购物车,但是要注意判断一下凳子数量和购物车数量的关系,这里不 ...
分类:
其他好文 时间:
2019-10-28 12:25:50
阅读次数:
65
问题描述 On the way home, Karen decided to stop by the supermarket to buy some groceries. She needs to buy a lot of goods, but since she is a student her ...
分类:
其他好文 时间:
2019-10-17 01:24:06
阅读次数:
65
考试T1,建一个反图跑一个最短路就好了~ code: ...
分类:
其他好文 时间:
2019-10-14 14:35:31
阅读次数:
71
泛型动态实例化需要三个步骤:1.获得泛型类型,2.指定泛型类型,3.实例化 有如下泛型类型: 则 Buy<T> 实例化步骤如下 1.获得泛型类型 typeBuy 2.指定泛型类型,获得最终泛型类型 ,如最终类型为 Buy<int>,则最终泛型类型 typeBuyInt 3.使用类型 typeBuyI ...
分类:
其他好文 时间:
2019-10-08 23:44:08
阅读次数:
94
思路: 建立虚点把点券转化成边权 cpp include include include include include define int long long define maxn 850500 using namespace std ; int read() { int x = 0 , f ...
分类:
其他好文 时间:
2019-10-07 17:35:10
阅读次数:
154
class Solution { public: int maxProfit(int k, vector<int> &prices){ int n=prices.size(),v=0,p=0,ret=0; vector<int> profits; stack<pair<int,int>> vp; w... ...
分类:
其他好文 时间:
2019-10-02 12:58:58
阅读次数:
62
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/solution/xiang-xi-tong-su-de-si-lu-fen-xi-duo-jie-fa-by-29/ 描述 给定一个数组,它的第 i 个元素是一支给定股 ...
分类:
其他好文 时间:
2019-09-27 19:28:22
阅读次数:
80
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b ...
分类:
其他好文 时间:
2019-09-11 11:53:03
阅读次数:
107