Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 11 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
15 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
64 líneas
Copiar todo
4 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
56 líneas
Copiar todo
function integerList(IntegerListID, Integers, Direction, Performance) {
function integerList(IntegerListID, Integers, Direction, Performance) {
var self = this;
var self = this;
self.IntegerListID = IntegerListID;
self.IntegerListID = IntegerListID;
self.Integers = Integers;
self.Integers = Integers;
self.Direction = Direction;
self.Direction = Direction;
self.Performance = Performance;
self.Performance = Performance;
}
}
function integer(IntegerID, IntegerListID, IntegerValue) {
function integer(IntegerID, IntegerListID, IntegerValue) {
var self = this;
var self = this;
self.IntegerID = IntegerID;
self.IntegerID = IntegerID;
self.IntegerListID = IntegerListID;
self.IntegerListID = IntegerListID;
self.IntegerValue = ko.observable(IntegerValue);
self.IntegerValue = ko.observable(IntegerValue);
self.IntegerValue.IsInvalid = ko.observable(false);
self.IntegerValue.IsInvalid = ko.observable(false);
}
}
function IntegerSorterViewModel() {
function IntegerSorterViewModel() {
var self = this;
var self = this;
Copiar
Copiado
Copiar
Copiado
self.Integers = ko.observableArray();
self.Integers = ko.observableArray();
self.directionOptions = (["Ascending", "Descending"]);
self.directionOptions = (["Ascending", "Descending"]);
self.Direction = ko.observable();
self.Direction = ko.observable();
Copiar
Copiado
Copiar
Copiado
self.loadIntegerSorter = function () {
self.loadIntegerSorter = function () {
self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]);
self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]);
self.Direction(self.directionOptions[0]);
self.Direction(self.directionOptions[0]);
};
};
self.integerSorter = new integerList(0, self.Integers, self.Direction, 0);
self.integerSorter = new integerList(0, self.Integers, self.Direction, 0);
self.addInput = function () {
self.addInput = function () {
Copiar
Copiado
Copiar
Copiado
self.Integers.push(new integer(0,
0,
0));
self.Integers.push(new integer(0,
0,
0));
};
};
self.removeInput = function () {
self.removeInput = function () {
self.Integers.pop();
self.Integers.pop();
};
};
self.save = function () {
self.save = function () {
Copiar
Copiado
Copiar
Copiado
isvm.loadIntegerSorter();
$.ajax("/
echo/json
", {
}
self.save = function () {
self.isLoading(true);
$.ajax("/
Home/Index
", {
data: ko.toJSON(self.integerSorter),
data: ko.toJSON(self.integerSorter),
cache: false,
cache: false,
type: "post",
type: "post",
Copiar
Copiado
Copiar
Copiado
context: self,
contentType: "application/json",
contentType: "application/json",
success: function (result) {
success: function (result) {
Copiar
Copiado
Copiar
Copiado
self.msgbox.status(result.Status);
this.loadIntegerSorter();
if (result.Status == "success") {
isvm.loadSortedIntegers();
}
self.isLoading(false);
},
},
error: function () {
error: function () {
Copiar
Copiado
Copiar
Copiado
self.isLoading(false);
},
},
});
});
};
};
}
}
isvm = new IntegerSorterViewModel()
isvm = new IntegerSorterViewModel()
isvm.loadIntegerSorter();
isvm.loadIntegerSorter();
ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Diferencias guardadas
Texto original
Abrir archivo
function integerList(IntegerListID, Integers, Direction, Performance) { var self = this; self.IntegerListID = IntegerListID; self.Integers = Integers; self.Direction = Direction; self.Performance = Performance; } function integer(IntegerID, IntegerListID, IntegerValue) { var self = this; self.IntegerID = IntegerID; self.IntegerListID = IntegerListID; self.IntegerValue = ko.observable(IntegerValue); self.IntegerValue.IsInvalid = ko.observable(false); } function IntegerSorterViewModel() { var self = this; self.Integers = ko.observableArray(); self.directionOptions = (["Ascending", "Descending"]); self.Direction = ko.observable(); self.loadIntegerSorter = function () { self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]); self.Direction(self.directionOptions[0]); }; self.integerSorter = new integerList(0, self.Integers, self.Direction, 0); self.addInput = function () { self.Integers.push(new integer(0,0,0)); }; self.removeInput = function () { self.Integers.pop(); }; self.save = function () { isvm.loadIntegerSorter(); } self.save = function () { self.isLoading(true); $.ajax("/Home/Index", { data: ko.toJSON(self.integerSorter), cache: false, type: "post", contentType: "application/json", success: function (result) { self.msgbox.status(result.Status); if (result.Status == "success") { isvm.loadSortedIntegers(); } self.isLoading(false); }, error: function () { self.isLoading(false); }, }); }; } isvm = new IntegerSorterViewModel() isvm.loadIntegerSorter(); ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Texto modificado
Abrir archivo
function integerList(IntegerListID, Integers, Direction, Performance) { var self = this; self.IntegerListID = IntegerListID; self.Integers = Integers; self.Direction = Direction; self.Performance = Performance; } function integer(IntegerID, IntegerListID, IntegerValue) { var self = this; self.IntegerID = IntegerID; self.IntegerListID = IntegerListID; self.IntegerValue = ko.observable(IntegerValue); self.IntegerValue.IsInvalid = ko.observable(false); } function IntegerSorterViewModel() { var self = this; self.Integers = ko.observableArray(); self.directionOptions = (["Ascending", "Descending"]); self.Direction = ko.observable(); self.loadIntegerSorter = function () { self.Integers([new integer(0, 0, 0), new integer(0, 0, 0)]); self.Direction(self.directionOptions[0]); }; self.integerSorter = new integerList(0, self.Integers, self.Direction, 0); self.addInput = function () { self.Integers.push(new integer(0, 0, 0)); }; self.removeInput = function () { self.Integers.pop(); }; self.save = function () { $.ajax("/echo/json", { data: ko.toJSON(self.integerSorter), cache: false, type: "post", context: self, contentType: "application/json", success: function (result) { this.loadIntegerSorter(); }, error: function () { }, }); }; } isvm = new IntegerSorterViewModel() isvm.loadIntegerSorter(); ko.applyBindings(isvm, document.getElementById("IntegerSorter"));
Encontrar la diferencia