Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 11 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
15 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
64 lignes
Copier tout
4 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
56 lignes
Copier tout
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;
Copier
Copié
Copier
Copié
self.Integers = ko.observableArray();
self.Integers = ko.observableArray();
self.directionOptions = (["Ascending", "Descending"]);
self.directionOptions = (["Ascending", "Descending"]);
self.Direction = ko.observable();
self.Direction = ko.observable();
Copier
Copié
Copier
Copié
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 () {
Copier
Copié
Copier
Copié
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 () {
Copier
Copié
Copier
Copié
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",
Copier
Copié
Copier
Copié
context: self,
contentType: "application/json",
contentType: "application/json",
success: function (result) {
success: function (result) {
Copier
Copié
Copier
Copié
self.msgbox.status(result.Status);
this.loadIntegerSorter();
if (result.Status == "success") {
isvm.loadSortedIntegers();
}
self.isLoading(false);
},
},
error: function () {
error: function () {
Copier
Copié
Copier
Copié
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"));
Différences enregistrées
Texte d'origine
Ouvrir un fichier
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"));
Texte modifié
Ouvrir un fichier
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"));
Trouver la différence