较少CSS = http://lesscss.org/
我声明了一个变量,就像这样...... @height: 30px
然后我用了一个简单的计算,就像这样...... line-height: @height * .666
它返回19.98px但我想要一个偶数20px
那么,LESS CSS是否有办法向上或向下舍入数字?
对于像这样的功能......
function example() {
var X = 100;
...
var Y = 'abc';
...
return Z;
}
Run Code Online (Sandbox Code Playgroud)
我需要解释一些局部变量的用途.添加这样的描述......
function example() {
/**
* @description - Need to explain the purpose of X here.
*/
var X = 100;
...
/**
* @description - Need to explain the purpose of Y here.
*/
var Y = 'abc';
...
return Z;
}
Run Code Online (Sandbox Code Playgroud)
...似乎没有被接受JS Doc v3.4.0.
什么是正确的语法?
PS我的一些用例需要多行注释.
使用 NodeJS、NPM 和 Gulp。
我想构建一个 gulp 任务来运行适用于 Ubuntu 和 Windows 的 JSDoc。
这适用于 Ubuntu ...
var exec = require('child_process').exec;
return function(cb) {
exec('node node_modules/.bin/jsdoc -c jsdoc-conf.json', function(err, stdout, stderr) {
cb(err);
});
};
Run Code Online (Sandbox Code Playgroud)
这适用于Windows ...
var exec = require('child_process').exec;
return function(cb) {
exec('node_modules\\.bin\\jsdoc -c jsdoc-conf.json', function(err, stdout, stderr) {
cb(err);
});
};
Run Code Online (Sandbox Code Playgroud)
不用说,两者都不适用于另一个。其他人如何解决此类问题?