小编Apo*_*sis的帖子

vim有这个Notepad ++功能吗?

在Notepad ++中,有一条虚线从函数关键字到方法的末尾.它看起来像这样:

替代文字

vim可以重现类似的东西吗?

vim highlighting notepad++ indentation

14
推荐指数
2
解决办法
1232
查看次数

javascript和这个

function distance(r,t){
        this.rate = r,
        this.time = t,
        this.calculate = function() {return rate * time ;};
        return this;
}

var trip1 = distance(2,4);
var trip2 = distance(5,7);
var trip3 = distance(3,10);
document.write("<br>trip1: " + trip1.calculate());
document.write("<br>trip2: " + trip2.calculate());
document.write("<br>trip3: " + trip3.calculate()); 
Run Code Online (Sandbox Code Playgroud)

输出中

trip1: 30
trip2: 30
trip3: 30
Run Code Online (Sandbox Code Playgroud)

输出不应该是

trip1: 8
trip2: 35
trip3: 30
Run Code Online (Sandbox Code Playgroud)

javascript

1
推荐指数
1
解决办法
118
查看次数

标签 统计

highlighting ×1

indentation ×1

javascript ×1

notepad++ ×1

vim ×1