文件操作 - negative.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/less/lib/less/tree/negative.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var node_1 = tslib_1.__importDefault(require("./node")); var operation_1 = tslib_1.__importDefault(require("./operation")); var dimension_1 = tslib_1.__importDefault(require("./dimension")); var Negative = function (node) { this.value = node; }; Negative.prototype = Object.assign(new node_1.default(), { type: 'Negative', genCSS: function (context, output) { output.add('-'); this.value.genCSS(context, output); }, eval: function (context) { if (context.isMathOn()) { return (new operation_1.default('*', [new dimension_1.default(-1), this.value])).eval(context); } return new Negative(this.value.eval(context)); } }); exports.default = Negative; //# sourceMappingURL=negative.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件