php怎么把这段js代码存到MYSQL数据库里面
<scripttype="text/javascript">$.urlParam=function(name){varresults=newRegExp('[\\?&]'...
<script type = "text/javascript">
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href);
if(results) {
return results[1] || 0;
}
return '';
}
function urldecode(url) {
return decodeURIComponent(url.replace(/\+/g, ' '));
}
$(function() {
$('#reg input').each(function(){
var v = $.urlParam($(this).attr('name'));
if(v) {
$(this).val(urldecode(v));
}
});
var err = $.urlParam('error_msg');
if(err) {
$('<div class="error">').text(urldecode(err)).insertBefore('#reg');
}
});
</script> 展开
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href);
if(results) {
return results[1] || 0;
}
return '';
}
function urldecode(url) {
return decodeURIComponent(url.replace(/\+/g, ' '));
}
$(function() {
$('#reg input').each(function(){
var v = $.urlParam($(this).attr('name'));
if(v) {
$(this).val(urldecode(v));
}
});
var err = $.urlParam('error_msg');
if(err) {
$('<div class="error">').text(urldecode(err)).insertBefore('#reg');
}
});
</script> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询