File path for AJAX script (in Wordpress)

前端 未结 3 1430
庸人自扰
庸人自扰 2020-12-17 19:21

I use this jquery-ajax script to send email:

    $.ajax({
        url: process.php,    
        type: \"POST\",
        data: data,        
        cache: fa         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 19:57

    I would be recommended to you use system like Registry for save all "global" values in a one place.

    Registry design pattern

    There is my small jQuery plugin if this is may be interesting to you. GitHub rep

    
    

    And to get value from the Registry you must use $.Registry.get('urlMail');

提交回复
热议问题