javascript – How do I get the content to display in the other menu options?

Here is my complete code. <html> <head> <meta charset=”utf-8″> <title>Title</title> <link rel=”stylesheet” href=””> <script src=””></script> <script src=””></script> <style> .hidden { display: none; } </style> <style> .down { font: bold 15px Arial; background-color: red; color: white; padding: 3px 3px; width: 100%; text-decoration: none; display: inline-block; border-top: 5px solid red; border-right: 5px solid red; border-bottom: 5px solid … Read more

python – Django does not display errors from the custom validator, and instead resets the form

I recently started learning Django and can’t solve one problem. I created my validator for the form, but instead of showing an error window, it just resets the form. Here is the code from django.db import models from django.urls import reverse_lazy from django.core.exceptions import ValidationError class News(models.Model): title = models.CharField(max_length=150, verbose_name=”Title”) content = models.TextField(blank=True, … Read more

chart.js – Failed to display data correctly for charts of more than one item in Chartjs

/*————– Color ————–*/ const ColorBac = [“rgba(255, 0, 50, 0.2)”, “rgba(27, 68, 128, 0.2)”, “rgba(246, 162, 30, 0.2)”, “rgba(1, 49, 32, 0.2)”]; const Colorborder = [“rgba(255, 0, 50, 0.6)”, “rgba(27, 68, 128, 0.6)”, “rgba(246, 162, 30, 0.6)”, “rgba(1, 49, 32, 0.6)”]; let getColor = function getColor(i) { var obj = { background: ColorBac[i], border: Colorborder[i], … Read more

mysql – No data display after QTableView freeze column?

Using QSqlTableModel in PYQT5 to read MySQL database, it can be correctly displayed in QTableView. After using QT5 instance to freeze the column example, there is no data displayed in tableView. It needs show() to display data in a new window. How to display it in the old tableView? class Ui_MainWindow(object): def setupUi(self, MainWindow): … Read more