首页 \ 问答 \ js中如何拼接字符串

js中如何拼接字符串

类似于这样  var a =document,gerelementByid("arraya").value; var b =document,gerelementByid("arrayb").value; var c =document,gerelementByid("arrayc").value;abc 分别是数组里面的值,我现在要把他们拼接到一起,在存储到数据库中,要怎么做?各位大虾
更新时间:2022-05-23 08:05

最满意答案

location ~ \.php$ {

root /usr/share/nginx/html;
try_files $uri = 404;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
}这样就可以了,我在后盾人看到的希望能帮到你

相关问答

更多
  • Nginx提供web服务,类似Apache、IIS和lighthttp; web服务如果收到php文件请求就将请求转给php处理,返回处理结果; FastCGI是php的一种运行模式,除此之外还可以以CGI或者ISAPI模式运行。 另外,如果你是用windows平台,建议使用 Apache+PHP+Mysql,简单些,如果非要和微软的IIS扯上关系,可能会比较麻烦,至少我这样认为;如果使用Linux平台,建议使用 Nginx+PHP+Mysql,PHP5.3已内置php-fpm,安装使用都很方便。 Wind ...
  • 对url后面/以外的内从进行临时从定向,last的状态码是301 例如你访问www.baidu.com/abc.html他最后会跳转到www.baidu.com/index.php/abc.html 这使用的是 正则表达式,你如果对.* $之类的不明白,可以对照正则表达式。
  • php用php-fpm启动,然后nginx location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 这样就可以了
  • 回复 chenyx 以上是php配置,selinux也已经用命令setenforce 0关了!!! 帮忙看下还有什么需要注意的
  •   对很多人而言,配置Nginx+PHP无外乎就是搜索一篇教程,然后拷贝粘贴。听上去似乎也没什么问题,可惜实际上网络上很多资料本身年久失修,漏洞百出,如果大家不求甚解,一味的拷贝粘贴,早晚有一天会为此付出代价。   假设我们用PHP实现了一个前端控制器,或者直白点说就是统一入口:把PHP请求都发送到同一个文件上,然后在此文件里通过解析「REQUEST_URI」实现路由。   此时很多教程会教大家这样配置Nginx+PHP:   server {   listen 80;   server_name foo. ...
  • 是指nginx配置有问题吗?还是其他方面 安装系统依赖包 yum install make apr* autoconf automake curl curl-devel gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel gd kernel keyutils patch perl kernel-headers compat* mpfr cpp glibc libgomp libstdc++-devel ppl cloog-ppl keyutils- ...
  • 如何实现隐藏php的扩展名访问 提供一个思路: apache可以通过开启mod_rewrite然后重写一下url规则。 nginx的可以通过try_files实现
  • 对url后面/以外的内从进行临时从定向,last的状态码是301 例如你访问www.baidu.com/abc.html他最后会跳转到www.baidu.com/index.php/abc.html 这使用的是正则表达式,你如果对.* $之类的不明白,可以对照正则表达式。
  • nginx调用PHP有sock方式和端口方式 1、确认nginx已经调用了php; 2、先确认你的nginx使用什么方式调用PHP; 3、如果使用端口方式,端口对不对应,如果使用SOCK方式,那么路径对不对; 上面只是大概,你有配置文件给,基本很快看出来,没有的话,实在不好判断

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)