Eclipse javascript代码正在改变

时间:2018-05-29 06:29:22

标签: eclipse

我在eclipse中遇到这种情况,每当我编写表的js脚本时,有时eclipse会更改代码,有时候在没有备份时会更复杂。

原始代码:

    if (isEdit == true) {
            positionSpanTag = "<span class='position input-group-addon'><i class='fa fa-lock'></i>";
            meberSpanTag = "<span class='memberName input-group-addon'><i class='fa fa-lock'></i>";
        } else {
            positionSpanTag = "<span class='position input-group-addon'><i class='fa fa-search'></i>";
            meberSpanTag = "<span class='memberName input-group-addon'><i class='fa fa-search'></i>";
        }

        var deleteButton = "<a style='cursor:pointer' class='btn-fab-mini' id='btnRemove'><i class='fa fa-trash'></i></a>";
        var inputHiddenTag = "<input  type='hidden'>";
        var inputTag = "<input  type='text' class='form-control' style='width: 180px;'>";

        var spanCalenderTag = "<span class='input-group-addon '><i class='fa fa-calendar' aria-hidden='true'></i></span>";

之后,eclipse改变了自己:

            if (isEdit == true) {
            positionSpanTag = "_$tag_____________________________________$tag__________________$ta";
            meberSpanTag = "_$tag_______________________________________$tag__________________$ta";
        } else {
            positionSpanTag = "_$tag_____________________________________$tag____________________$ta";
            meberSpanTag = "_$tag_______________________________________$tag____________________$ta";
        }

        var deleteButton = "_$tag__________________________________________________________$tag___________________$ta_$ta";
        var inputHiddenTag = "_$tag_________________";
        var inputTag = "_$tag__________________________________________________________";

        var spanCalenderTag = "_$tag_____________________________$tag_________________________________________$ta_$tag__";

我已就此here提交了错误报告。

0 个答案:

没有答案