摘要:
function unique(arr) { var result = [], hash = {}; for (var i = 0, elem; (elem = arr[i]) != null; i++) { if (!hash[elem]) { result.push(elem); hash[el 阅读全文
摘要:
// var _serializeJson = function (params) { // var serializeJson = [], obj = {}; // if (params.length) { // params.forEach(function (v) { // if (v.nam 阅读全文
摘要:
立即生效环境变量: 1、打开cmd输入: set PATH=C: 2、关闭cmd 3、重新打开cmd输入: echo %PATH% 阅读全文
摘要:
求和: 根据条件过滤: 根据条件增加删除新元素: 根据条件增加删除新元素: 阅读全文
摘要:
1、通过在“运行”(Win+R)中输入‘regedit’,打开注册表。 2、找到[HKEY_CLASSES_ROOT\Directory\Background]。 3、在[Background]下如果没有[shell],则右键-新建项[shell]。 4、在[shell]下右键-新建项[open i 阅读全文
摘要:
vue-cli中已经内置配置好了sass 以及lass的配置。如果需要的话直接下载两个模块就可以了 如果是淘宝镜像直接运行cnpm是一样的效果 然后在组件或者视图中给样式加上语言就可以了 这里需要说明一下scoped是让样式只在当前组件或者视图中起作用的。 less的话也是一样 需要装两个loade 阅读全文
摘要:
const router = new VueRouter({ mode: 'history', routes: [...] }) 阅读全文
摘要:
insert into news(id,title,Ncontent,newsUrl)value(id,'我是标题','我是内容','chanyeguihua.html'); SET @id= last_insert_id(); update news set newsUrl =replace(newsUrl,'.html',concat(@id,'.html')) where id=@id; ... 阅读全文
摘要:
返回0则表示该表不存在,否则存在! 或者: 推荐使用第一种! 阅读全文