我正在尝试运行以下代码...
<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()的参数传递?