In the past, this site introduced a new method for writing HTML and CSS, and introduced the code in a hybrid manner yesterday. NET code and Python and Ruby Code Conversion tools, but the world may be more crazy than we think. IronPython is something that runs Python on the. NET platform, just like something that runs other languages on the JVM. Of course, the most evil thing about IronPython is not to run Python on. NET, but to write Python syntax in Javascript. This malformed and mixed-blood website is here (please pay attention to the wall ).
This is easy to use. Next, let's take a look at what it looks like?
First, you need to link a js file:
Copy to ClipboardReference: [www.bkjia.com] <script src = "http://gestalt.ironpython.net/dlr-latest.js" type = "text/javascript"> </script>
Then, let's see how to write a button event:
Copy to ClipboardReference: [www.bkjia.com] <input id = "button" type = "button" value = "Say, Hello! "/>
<Script type = "text/python">
Def button_onclick (s, e ):
Window. Alert ("Hello from Python! ")
Document. button. events. onclick + = button_onclick
</Script>
What do you think about this? Thank you for choosing your opinion.