我对 JavaScript 和 jQuery 都很陌生,在我的 Visual Studio 代码中,它的说法是预期接近var se,而且它说'}'预期接近{"URL":window.location.href,}什么是合适的解决方案。
请指教。
这是我的代码:
<script type = "text/javascript">
function renderSurvey(URL){
var se = new SurveyEmbed("FM9wg_ghhgvjh","https://formsss.tester.com/","https://jhbjh.kjbkjedge.net/mfpembedconkhtweu/");
var context = {"URL":window.location.href,};se.renderButton( context);
}
</script>