首页 \ 问答 \ 在网页上运行SQL和Python(Running SQL and Python on a webpage)

在网页上运行SQL和Python(Running SQL and Python on a webpage)

只是一个普遍的问题。
我在Spider中编写了一些Python代码。 在我的代码中,我使用sql命令从ssms中提取数据,然后使用Python来操纵它们。 现在我想在网页或其他在线来源上实施我的代码,以便其他人可以运行它们。 怎么可能? 任何想法将不胜感激:)谢谢!

PS我是PC用户而不是MAC


just a general question.
I have written some Python codes in Spider. In my code, I use sql command to pull data from ssms then use Python to manipulate them. Now I want to implement my codes on a webpage or other online sources so other can run them. How would be possible? Any thought would be appreciate :) Thanks!

P.S I'm a PC user not MAC


原文:https://stackoverflow.com/questions/48554112
更新时间:2023-01-24 09:01

最满意答案

Angular JS文档说:

当Angular启动您的应用程序时,它使用编译器从模板解析并处理此新标记。 加载,转换和渲染的DOM基本上是视图

这里的模板意味着:

包含Angular特定属性的HTML代码。

有关AngularJs如何工作以及它可以做什么的更多信息,请阅读提供的文档:

https://docs.angularjs.org/guide/concepts

有一个深入的教程,提供了有关它的更多信息。

我希望这可以帮助你开始吧:)


Angular JS documentation says:

When Angular starts your application, it parses and processes this new markup from the template using the compiler. The loaded, transformed and rendered DOM is basically the view

Here a template means:

HTML code that contains Angular specific attributes.

For more information on how AngularJs works and what it can do, please read the documentation provided:

https://docs.angularjs.org/guide/concepts

There is an in-depth tutorial which provide more information on it.

I hope this could help you get started with it :)

相关问答

更多
  • Angular JS文档说: 当Angular启动您的应用程序时,它使用编译器从模板解析并处理此新标记。 加载,转换和渲染的DOM基本上是视图 这里的模板意味着: 包含Angular特定属性的HTML代码。 有关AngularJs如何工作以及它可以做什么的更多信息,请阅读提供的文档: https://docs.angularjs.org/guide/concepts 有一个深入的教程,提供了有关它的更多信息。 我希望这可以帮助你开始吧:) Angular JS documentation says: Whe ...
  • 因为它在树视图的代码中查找,默认情况下你不能。 但是你可以修改它的代码(缩小版本的例子),改变 {{node.'+e+'}}
    第一个问题是,一切都需要在app-root的范围内。 您的所有组件和模块都必须是root的子项。 您需要将组件包含在app.module.ts中,并且需要在app.component.html中提供DOM元素。 接下来的问题是前一阵子md被mat替换了,所以你在html中使用过时的Material项。 如果您希望在项目中使用Angular-Material,那么这里有一个使用Angular 5,Material 2和Flex-Layout的github回购: https : //github.com/zba ...
  • 问题在于URL结构。 我们使用了HashLocationStrategy https://codecraft.tv/courses/angular/routing/routing-strategies/ ,在URL中添加了#,以便在刷新服务器中的角度页面时避免404页错误。 当我们从应用程序中删除HashLocationStrategy时,它运行正常。 @david:谢谢你的支持。 The issue was with the URL structure. We've used HashLocationSt ...
  • angular-ui-bootstrap构建模式窗口启动一个名为isOldBrowser的函数。 通过他们的回购,您可以在misc / demo / assets / app.js下找到该功能。 它不是寻找特定的浏览器,而是寻找能够执行特定功能或返回特定结果的浏览器。 据推测,检查将是一种非常通用的方式,以确保您拥有适当的浏览器。 话虽如此, Bootstrap几乎列出了每个浏览器的支持 ,只有少数例外(比如Windows上的Safari)以及每个浏览器都有 几个bug 。 Angular有类似的声明 ,因 ...
  • 这个问题是由于ts-loader的不匹配造成的,如果webpack版本是3.x,请使用ts-loader 3.5.0,这可以解决问题。 https://github.com/TypeStrong/ts-loader/issues/729 this issue is caused due to the mismatch of the ts-loader if the webpack version is 3.x please use ts-loader 3.5.0 and this should resolv ...
  • Error: [ng:areq] http://errors.angularis.org/1.5. angular.is:13708 7/ng/area?p0=tripsController&pl=not%20a%20function%2C%20got%20undefine d 错误表示tripsController未找到/加载。 你有包含控制器的js文件到你的主索引文件吗? Error: [ng:areq] http://errors.angularis.org/1.5. angular.is:1370 ...
  • 你使用的是Angular v2,没有BrowserAnimationsModule,这个模块是Angular v4的一部分。 实际上你不需要这个导入 You're using Angular v2, there are no BrowserAnimationsModule, this module is the part of the Angular v4. Actually you don't need this import
  • 使用CDN来传递像angular或jquery这样的常用库,你可以避免自己构建它时可能遇到的麻烦。 如果您没有具体的理由和优势,那么CDN是一个很好的方法。 一些主要的图书馆在谷歌提供的非常可靠的服务器上免费托管在CDN上: https://developers.google.com/speed/libraries/ 您只需将代码库包含在代码中即可: