简体   繁体   English

是否有可能执行噩梦般从网站的javascript编写的功能? 还是其他方式?

[英]Is it possible to execute a function that is written from the javascript of a website with nightmare? Or any other way?

You know when you visit a page in a website and view the source code, sometimes you see an element execute a javascript function? 您知道当您访问网站上的页面并查看源代码时,有时会看到某个元素执行javascript函数吗? For example: 例如:

<button type="button" id="chocolate" onclick="EditShipment()">Click me</button>

Can I use nightmare to visit this page and execute EditShipment() ? 我可以使用噩梦来访问此页面并执行EditShipment()吗? And if so, is it possible to pass in our own arguments to that function's argument? 如果是这样,是否有可能将我们自己的参数传递给该函数的参数?

使用控制台并键入无需单击按钮即可执行的函数名称

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

相关问题 (JavaScript)从其他函数回调执行函数 - (JavaScript) Execute a function on callback from other function 等待噩梦js中的javascript函数 - Wait for javascript function in nightmare js 还有其他方法可以从节点js调用mongodb中存储的javascript函数 - Is there any other way to call a javascript function stored in mongodb from node js 从网站上刮掉用javascript编写的文本 - Scrape a text that was written by javascript from website 有什么方法可以从 java 代码执行 javascript 函数 - Is there any way to execute javascript functions from java code 是否可以将输入的值从我的网站传递到互联网上的任何其他网站 - Is it possible to pass inputed values from my website to any other website on the internet 有什么办法可以从具有本地内容的动作脚本执行js函数? - Is there any way to execute a js function from actionscript with local content? 有没有办法判断JavaScript中的函数是否越过了? - Is there a way to tell if a function in JavaScript is getting over written? 是否可以从jsp的java部分执行javascript函数? - Is it possible to execute a javascript function from the java part of jsp? 是否可以从javascript函数的调用中执行request.getRequestDispatcher? - Is it possible to execute the request.getRequestDispatcher from the post call of a javascript function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM