[英]How to call ajax function that will call my plugin's function
I have the following function in my plugin 我的插件中具有以下功能
function IsIdInProject($id=null){
if ($id=="test")
{
return true;
}
return false;
}
I need to call this function from my page using jquery, but I do not understand what to put in my url parameter. 我需要使用jquery从我的页面调用此函数,但我不知道要在url参数中添加什么。
This code is located in settings.php page of my plugin (plugins/myplugin/settings.php) 此代码位于我的插件的settings.php页面(plugins / myplugin / settings.php)
I cannot just call url: mywebsite.com/plugins/myplugins/settings.php
, right? 我不能只拨打
url: mywebsite.com/plugins/myplugins/settings.php
,对吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.