literyz-js/demo-extensions.html

45 lines
1000 B
HTML
Raw Normal View History

2024-08-08 11:13:28 +00:00
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="UTF-8" />
<meta http-equiv="content-type" content="text/html" charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="keyword" content="" />
<script src="dist/extensions.js"></script>
<!-- <script src="bsdialog4.min.js"></script> -->
<title></title>
<style>
.text-sm {
font-size: 0.8em;
}
</style>
<script>
var dataSet = [
{ key: "b", value: "B2", num: 2, f: 2.2, date: new Date(2001, 2, 2) },
{ key: "d", value: "D4", num: 4, f: 4.4, date: new Date(2001, 4, 4) },
{ key: "a", value: "A1", num: 1, f: 1.1, date: new Date(2001, 10, 1) },
{ key: "e", value: "E5", num: 5, f: 5.5, date: new Date(2001, 5, 5) },
{ key: "c", value: "C3", num: 3, f: 3.3, date: new Date(2001, 3, 3) }
];
dataSet = dataSet.orderByDesc("date");
// console.log(result);
console.log(dataSet);
</script>
</head>
<body>
</body>
</html>