- 博客(15)
- 收藏
- 关注
转载 PHP替换回车换行的三种方法
一个小小的换行,其实在不同的平台有着不同的实现,为什么要这样,世界是多样的!本来在Unix世界换行用/n来代替换行,Windows为了体现不同,就用/r/n,更有意思的是,Mac中又用了/r。所以,写的程序在不同的平台上,有着不少的麻烦,比如要替换换行符。第一种方式str_replace(array("/r", "/n", "/r/n"), "", $string);第二种方式,就用正则表达示$str = preg_replace('//s*/', '', $str);
2020-06-22 16:41:24
170
转载 判断js值是否设置
I generally use the typeof operator:if (typeof obj.foo !== 'undefined') { // your code here}It will return "undefined" either if the property doesn't exist or its value is undefined.(See also: Diff...
2018-04-17 16:27:25
1076
转载 magento crud操作
Today we’re going to cover creating Magento 2 CRUD models. CRUD stands for Create, Read, Update, and Delete, and commonly refers to framework features used to read and write information to/from the un...
2018-03-30 22:49:38
499
转载 git放弃本地修改,重新更新最新系统
如果想放弃本地的文件修改,可以使用git reset --hard FETCH_HEAD,FETCH_HEAD表示上一次成功git pull之后形成的commit点。然后git pull.
2018-03-19 17:05:24
3068
翻译 MAGENTO如何定位layouts
会定位LAYOUTS,就相当于会修改MAGENTO前端了。Locate layoutsJust like templates, layouts are saved on a per-module basis. You can easily locate the layout file by determining in which module the templates for the elem...
2018-03-19 16:28:05
193
转载 MAGENTO主题继承
Theme inheritanceWhat's in this topicTheme inheritance enables you to easily extend themes and minimize the maintenance efforts. You can use an existing theme as a basis for customizations, or minor s...
2018-03-16 13:28:02
256
转载 MAGENTO的目录结构
/app – 程序根目录 /app/etc – 全局配置文件目录 /app/code – 所有模块安装其模型和控制器的目录 /app/code/core – 核心代码或经过认证得模块,如果要升级不要这里的代码 /app/code/community – 社区版的模块目录 /app/code/local – 定制代码目录 /app/code/core/Mage – magen...
2018-03-16 11:57:41
637
翻译 修改MAGENTO2.1默认邮件模板
Customize email templatesEmail templates are stored in the <module_dir>/view/<area>/email directory of their respective modules. For example, the template for the new order transactional e...
2018-03-16 11:26:25
1468
转载 删除远程分支
先查看远程分支[plain] view plain copygit branch -r 使用下面两条命令来删除远程分支[python] view plain copygit branch -r -d origin/branch-name git push origin :branch-name 删除本地分支$ git branch -d <BranchName>...
2018-03-16 10:16:31
173
转载 git 常用命令
git rm 删除文件git rm -r 递归删除git commit -am "1111" 添加所有更改并提交到镜像git commit --amend -m "new message" 更新提交信息,也可以添加文件后再提交。git pushgit pull origin mastergit init 初始化新的空项目 git clone 项目地址 /本地路径 配置用户名和邮箱git con...
2018-03-16 09:18:21
153
原创 windows和linux文件系统不同导致的故障
Lib 和 lib在windows下被认成同一个文件夹,但上传到服务器后却出现故障,导致找不到文件,原来是文件夹合并后大小写发生了改变,当然会找不到了。thinkphp 找到不控制器的故障就是这个原因导致的,还以为整个站点出了什么状况。
2017-04-03 08:56:56
260
原创 为shopnc搭建LINUX环境
1、选择阿里云CENTOS 6公共镜像2、yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel b
2017-03-16 11:43:40
275
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人