预期的标识符,字符串或数字IE问题 [英] Expected identifier, string or number IE problem

查看:95
本文介绍了预期的标识符,字符串或数字IE问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...我想知道您是否可以帮助我解决我的问题...我有一个使用ajax请求某个页面的jquery代码...现在它可以在Firefox和IE以外的其他浏览器上工作.我不断收到此错误期望的标识符,字符串或数字" ...我不知道这是什么问题...它一直指向这行代码

Hi guys... i was wondering if you can help me with my problem... i have a jquery code that request for a certain page using ajax... now its working on firefox and other browser except IE... i keep on getting this error "Expected identifier, string or number"... i dont know whats the problem with this... it keeps on pointing to this line of code

$("#add_ads").click(function(){
	var urls= "../includes/add_ads.php";
	var request= "POST";
	$.ajax({
	  type: request + "",
	  url: urls + "",					
	  dataType: "html",
	  data: {
	    "page": $("#page_name").val() + "",
		   "action": "new"
		},
								
	  success: function(response){				    
             $.facebox(response);		
	  }
        });
      return false;
    });



我不知道我的代码中的问题在哪里,我已经尝试过



i dont know where is the problem in my code i already tried the

type: request + "",

type: "POST",

url: urls + "",

url: "../includes/add_ads.php",

我真的不知道现在如何解决..请帮助伙计们

i really dont know how to solve this now.. please help guys

推荐答案

("#add_ads).click(function(){ var urls ="../includes/add_ads.php"; var request =" POST;
("#add_ads").click(function(){ var urls= "../includes/add_ads.php"; var request= "POST";


.ajax({ 类型:请求+", url:urls +", dataType:"html", 数据: { 页面":
.ajax({ type: request + "", url: urls + "", dataType: "html", data: { "page":


(#page_name").val()+", "action":"new" }, 成功:功能(响应){
("#page_name").val() + "", "action": "new" }, success: function(response){


这篇关于预期的标识符,字符串或数字IE问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆