jQuery 'If' statement string comparison not working

前端 未结 3 521
眼角桃花
眼角桃花 2021-01-04 09:35

I\'m having a very hard time trying to do something very simple. Here\'s the code:

        if(data == \'success\') {

            alert(\'foo\');

        }          


        
3条回答
  •  囚心锁ツ
    2021-01-04 09:57

    You can remove the trailing ?> in your file, if it is the last line in the file. I want to response to the comments to the original issue, but i don't see how.

提交回复
热议问题