首先一段php代码判断是否为手机浏览: phpcms 模板文件中创建两个模板: 其中 content中的文件是PC端模板,content_m中的文件是手机端模板。 其次在pgpcms中 编辑 phpcms/modules/content/index.php 讲以上php代码 放到index的clas ...
分类:
移动开发 时间:
2017-07-17 15:17:34
阅读次数:
404
暂定本章为这个系列最后一章,还是继续沿用模块的别名(alias)概念 <modules> <Mage_Wishlist> <version>1.6.0.0</version> <alias>wishlist</alias> </Mage_Wishlist> </modules> 看下Magento通 ...
分类:
其他好文 时间:
2017-07-16 13:38:57
阅读次数:
149
npm是一个node包管理和分发工具,已经成为了非官方的发布node模块(包)的标准。有了npm,可以很快的找到特定服务要使用的包,进行下载、安装以及管理已经安装的包。 1、npm install moduleNames:安装Node模块安装完毕后会产生一个node_modules目录,其目录下就是 ...
分类:
Web程序 时间:
2017-07-15 17:46:07
阅读次数:
206
vue 使用的是单一状态树对整个应用的状态进行管理,也就是说,应用中的所有状态都放到store中,如果是一个大型应用,状态非常多, store 就会非常庞大,不太好管理。这时vuex 提供了另外一种方式,可以把整个store 分成几个大的模块,如登录模块,用户模块等,每一个模块都有自己的state, ...
分类:
其他好文 时间:
2017-07-15 16:46:57
阅读次数:
171
wgethttp://pecl.php.net/get/vld-0.11.2.tgztarzxfvld-0.11.2.tgzcdvld-0.11.2whichphpize/usr/bin/phpizefind/-name‘php-config‘/usr/bin/php-config./configure--with-php-config=/usr/bin/php-config--enable-vldecho$?make&&makeinstallll/usr/lib64/php/modules/..
分类:
Web程序 时间:
2017-07-14 20:32:24
阅读次数:
201
[root@embedded secbulk]# make -C /lib/modules/`uname -r`/build M=`pwd` modules make: *** /lib/modules/2.6.32-71.el6.i686/build: 没有那个文件或文件夹。 停止。 [root@ ...
分类:
系统相关 时间:
2017-07-13 22:44:31
阅读次数:
289
npm介绍 -g:全局安装。 将会安装在C:\Users\Administrator\AppData\Roaming\npm,并且写入系统环境变量; 非全局安装:将会安装在当前定位目录; 全局安装可以通过命令行在任何地方调用它,本地安装将安装在定位目录的node_modules文件夹下,通过requ ...
分类:
其他好文 时间:
2017-07-12 15:30:05
阅读次数:
186
限制所有MVC接收到的HTTP请求必须是POST方式。 一、HttpPostAttribute特性 大家首先想到时的,MVC提供了HttpPostAttribute特性,是用于限制HTTP请求必须POST方式来提交。 public class HomeController : Controller ...
分类:
Web程序 时间:
2017-07-12 10:15:38
阅读次数:
353
一:打开httpd.conf文件,移除注释的行: Include conf/extra/httpd-ahssl.conf LoadModule ssl_module modules/mod_ssl.so ServerName localhost:80 二:放置SSl证书 选择Apache 划掉的是域 ...
分类:
移动开发 时间:
2017-07-11 20:58:11
阅读次数:
407
package com.sm.modules.oa.web; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.i... ...
分类:
编程语言 时间:
2017-07-11 17:53:24
阅读次数:
197