javascript代码中嵌入的url
我想这里有一个部分网址,但无法阅读。即 我有www.website.com/ 需要下一部分吗javascript代码中嵌入的url,javascript,url-rewriting,Javascript,Url Rewriting,我想这里有一个部分网址,但无法阅读。即 我有www.website.com/ 需要下一部分吗 $j('.get-code').live('click', function() { linkId = $j(this).attr("id"); codeId = linkId.replace("get-code-day-", ""); voucherCode = $j("#voucher-code-day-" + codeId).val(); $j.post("/pr
$j('.get-code').live('click', function() {
linkId = $j(this).attr("id");
codeId = linkId.replace("get-code-day-", "");
voucherCode = $j("#voucher-code-day-" + codeId).val();
$j.post("/promotions/ajax/add-user-voucher", {
voucherCode: voucherCode
}, function(xml) {
if ($j("status", xml).text() == "1") {
// do something on success
} else {
showUIDialog("<p>A problem occurred: " + $j("error", xml).text() + "</p>");
}
return false;
});
$j('.get code').live('click',function()){
linkId=$j(this.attr(“id”);
codeId=linkId.replace(“获取代码日-”,“”);
凭证代码=$j(“#凭证代码日-”+codeId).val();
$j.post(“/promotions/ajax/add用户凭证”{
凭证代码:凭证代码
},函数(xml){
如果($j(“状态”,xml).text()=“1”){
//为成功做点什么
}否则{
showUIDialog(出现问题:“+$j(“错误”,xml).text()+””;
}
返回false;
});
不确定您的意思…您是否正在尝试解析javascript以提取某个url?您的javascript是否正在尝试从dom的某个部分提取某个url?是的,对不起,我需要此代码中的url