将CFCObject.class作为参数从Coldfusion传递给Java方法

时间:2018-07-13 15:04:19

标签: java orm coldfusion

我正在尝试运行以下代码...

<html>
<body>
  <p>Click the button to create a SELECT and an OPTION element.</p>
  <button onclick="myFunction()">Try it</button>

  <script>
    function myFunction() {
      var selectElement = document.createElement("SELECT");
      selectElement.setAttribute("id", "mySelect");
      document.body.appendChild(selectElement);

      var optionElement = document.createElement("option");
      optionElement.setAttribute("value", "volvocar");

      var textNode = document.createTextNode("Volvo");
      optionElement.appendChild(textNode);

      document.getElementById("mySelect").appendChild(optionsElement);
    }
  </script>
</body>
</html>

MyModel是一个Coldfusion ORM cfc

如何从MyModel.cfc中获取MyModel.class作为addEntity()的参数传递?

0 个答案:

没有答案