我收到错误
[Error] PLS-00103 (805: 6): PLS-00103: Encountered the symbol "HTP" when expecting one of the following: := . ( % ;
The symbol ":=" was substituted for "HTP" to continue.
哪一行是最后一行,我没有看到任何我遗漏的东西,但显然有一个逗号或其他东西。有人可以帮忙吗?
HTP.P( '<script>
function currencychange(){
$.ajax({
url:contr_entry_pkg.select_sales_center,
data: { pvCurrCd:'||CURRDEF||',
pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
}
async:false,
success: function(vRetVal){
var jsonObj = eval("("+vRetVal+")");
}
});
};' )
HTP.P( '</script>');
答案 0 :(得分:1)
也许在最后一行之前应该有;
'...
};' );
HTP.P( '</script>');
答案 1 :(得分:0)
正如您所看到的语法高亮...
HTP.P('<script>
function currencychange(){
$.ajax({
url:contr_entry_pkg.select_sales_center,
data: {
pvCurrCd:"||CURRDEF||",
pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
},
async:false,
success: function(vRetVal) {
var jsonObj = eval("("+vRetVal+")");
}
});
};');
HTP.P('</script>');