如何获取脚本标签的值 [英] how get the value of a script tag

查看:25
本文介绍了如何获取脚本标签的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的页面代码中,有这个脚本标签:

In my page code, there is this script tag:

<script>
  var oid = "182384";
  document.getElementById('container').innerHTML = oGrid;
  oGrid.setShowSid(false);
  oGrid.calcSize();
  setupAllTabs();
  var toolbar = setupMenuButtons("btnbar");

  initForm(toolbar);
</script>

如何使用 watir 或 ruby​​ 获取 oid 的值?

How can I get the value of oid with watir or ruby?

推荐答案

browser.script.html 将输出

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆