简体   繁体   English

一个不使用JavaScript的动态站点

[英]A dynamic site that does not use JavaScript

I started using the python django framework.我开始使用 python django 框架。 Can I open a dynamic site without using JavaScript?我可以在不使用 JavaScript 的情况下打开动态站点吗? I find python easy to use and for some reason I don't like JavaScript.我发现 python 易于使用,但出于某种原因,我不喜欢 JavaScript。

In order to implement dynamic elements (such as displaying messages at button click without updating the site) you need to instruct the browser to change the respective DOM elements.为了实现动态元素(例如在按钮单击时显示消息而不更新站点),您需要指示浏览器更改相应的 DOM 元素。

Currently the only fully supported language that browsers understand for that purpose is Javascript.目前,浏览器为此目的理解的唯一完全受支持的语言是 Javascript。

There are Javascript alternatives such as Dart or Typescript, but they need to be transpiled to Javascript to work with browsers.有 Javascript 替代品,例如 Dart 或 Typescript,但需要使用浏览器将它们转译为 Z9E13B69D1D2ACA927。

So, practically you cannot build a dynamic website without Javascript at the moment.所以,实际上你目前无法建立一个没有 Javascript 的动态网站。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM