- OC语言多界面传值五大方式
Magnetic_h
iosui学习objective-c开发语言
前言在完成暑假仿写项目时,遇到了许多需要用到多界面传值的地方,这篇博客来总结一下比较常用的五种多界面传值的方式。属性传值属性传值一般用前一个界面向后一个界面传值,简单地说就是通过访问后一个视图控制器的属性来为它赋值,通过这个属性来做到从前一个界面向后一个界面传值。首先在后一个界面中定义属性@interfaceBViewController:UIViewController@propertyNSSt
- 用前端的语言写后端——Node.js之Express
tabzzz
前端前端node.jsexpress
ExpressExpress是一种流行的模型视图控制器(MVC)Node.js框架,具有快速、极简和灵活的优点,为Web和移动应用程序开发提供了强大的功能集合。最受欢迎的Node.js框架!文章目录Express安装ExpressHelloWorld路由中间件全局中间件应用中间件开放跨域请求几种常用的Express内置中间件函数1.JSON格式数据中间件函数2.静态文件中间件函数3.路由中间件函数
- 2.12 UITapGestureRecognizer手势之双击 [iOS开发-Xcode教程]
互动教程网
1.在欢迎窗口右侧的历史项目列表中,双击打开之前创建的单视图项目模板。image2.本节课将为您演示,如何给视图对象添加手势,使视图对象能够检测到手指的双击操作。首先在一个空白项目中,打开视图控制器的代码文件。image3.接着开始编写代码,实现这项功能。image4.首先初始化一个原点在(32,80),宽度和高度都是256的矩形常量,作为视图的显示区域。image5.然后创建一个相应尺寸的图像视
- Swift中ViewController视图控制器的生命周期
文艺范的世界
swiftSwift生命周期和导航相关
1、每个视图控制器就代表着一个界面,和Android的Activity一样,所以一个界面就有它的生命周期,比如:视图的创建,完成,消失等等。下面用代码注释的方式直接看出来。////TestViewController.swift//MicroPlaform////Createdbymacon2019/6/11.//Copyright©2019年www.ausee.com.Allrightsrese
- ios c语言调用oc方法,ios-面试-OC 方法调用的过程原理
weixin_39615419
iosc语言调用oc方法
OC中的所有方法调用,最终都是转换成runtime中的一个C语言消息分发函数:objc_msgSend(消息接收者,方法名,参数。。。)这条消息发送之后,系统会在receiver的类对象的方法列表中找这个方法,如果没找到,再到receiver的父类的方法列表中找,如此直到根类至找到为止,如果还没有找到会报出错误。(缓存:方法第一次被调用之后,方法会被存入一张缓存表,之后如果再被调用时就直接从缓存表
- 面试题整理2
充满活力的早晨
1、设计模式是什么?你知道哪些设计模式,并简要叙述?设计模式是一种编码经验,就是用比较成熟的逻辑去处理某一种类型的事情。1).MVC模式:ModelViewControl,把模型视图控制器层进行解耦合编写。2).MVVM模式:ModelViewViewModel把模型视图业务逻辑层进行解耦和编写。3).单例模式:通过static关键词,声明全局变量。在整个进程运行期间只会被赋值一次。4).观察者模
- ios-数据库-事务
-FIGHTING-
iOS封装数据库事务回滚存储
概念事务(Transaction)是访问并可能更新数据库中各种数据项的一个程序执行单元(unit)。事务通常由高级数据库操纵语言或编程语言(如SQL,C++或Java)书写的用户程序的执行所引起,并用形如begintransaction和endtransaction语句(或函数调用)来界定。事务由事务开始(begintransaction)和事务结束(endtransaction)之间执行的全体操
- Metal 案例04:加载图片
辉辉岁月
本案例的目的在于理解如何加载TGA图片,以及加载PNG/JPG图片加载TGA图片加载TGA图片的效果如图所示整体案例流程图如下所示准备工作在加载图片之前,需要作以下准备工作:UI视图控制器类OC与OC的.h桥接文件CJLImage类创建metal文件创建自定义render渲染循环类UI视图控制器类在viewDidLoad函数中创建MTKView对象、自定义render对象,并设置view的代理为r
- html 绘制ios时钟,iOS-模仿苹果时钟选择控件
欧尼酱牌酱牛肉
html绘制ios时钟
最近看了苹果自带应用时钟上的时间选择工具感觉挺巧妙的,就尝试着模仿它做出一个控件工具。工程Demo运行效果如下:AppleAlram.gif根据时钟选择工具上面的功能,大概可以确定,圆环的绘制我们可以通过CAShapeLayer结合UIBezierPath绘制出来,当拖动起始点或者结束点View时,通过手势判断拖动的角度,从而改变UIBezierPath的角度,并且让起始点或者结束点View根据拖
- ios uiwindow弹窗_iOS学习笔记--PresentedVC自定义弹窗
weixin_39583521
iosuiwindow弹窗
一、封装自定义弹窗有一下几种:1直接在当前视图控制器上放view(简直6翻了)2present到一个新的半透明视图控制器(类似UIAlertViewController,也就是说咱们要用的就是个控制器而不是个View了)3使用一个windowLevel更高的UIWindow(UIAlertView就是这种)4放在keyWindow上(使用这种方式有隐患,点击查看详情)5放在[UIApplicati
- iOS-系统弹窗调用
MrZWCui
ioscocoamacosobjective-c学习Appleui
代码:UIAlertController*alertViewController=[UIAlertControlleralertControllerWithTitle:@"请选择方式"message:nilpreferredStyle:UIAlertControllerStyleActionSheet];//style为sheetUIAlertAction*cancle=[UIAlertActio
- iOS总体框架介绍和详尽说明
诗雅颂
ios移动端框架苹果
iOS是由苹果公司开发的移动操作系统,为iPhone、iPad、iPodTouch等设备提供支持。iOS采用了基于Unix的核心(称为Darwin),并采用了类似于MacOSX的图形用户界面。以下是iOS的总体框架介绍和详尽说明:UIKit框架:UIKit是构建iOS应用程序用户界面的主要框架。它包括了各种视图控制器(如UITableViewController、UIViewController)
- automaticallyAdjustsScrollViewInsets
八匹马_BPM
automaticallyAdjustsScrollViewInsets的作用是默认情况下,它可以保证滚动视图的内容自动偏移,不会被UINavigationBar与UITabBar遮挡。UINavigationBar与UITabBar默认都是半透明模糊效果,在这种情况下系统会对视图控制器的UI布局进行优化:当视图控制器里面【第一个】被添加进去的视图是UIScrollView或其子类时,系统会自动调
- 2018-03-20
HupuJRs001
MVC设计模式框架1.模型视图控制器2.框架是程序结构代码的集合。集合中包含了很多的类、函数和功能的包。3.框架学习流程了解项目的运行流程;了解tp的url模式自定义函数库;模板技术调试模式和运行状态;数据的常用操作;4.关于thinkphp面向对象mvc的设计模式丰富的查询语言详尽的文档单一入口框架5.//common存放当前目录的公共文件//conf存放当前目录的配置文件//lang存放当前目
- iOS-底层原理 :alloc & init & new 源码分析(二)
ios南方
(iOS底层原理文章汇总)(iOS资料大全)在分析alloc源码之前,先来看看一下3个变量内存地址和指针地址区别:分别输出3个对象的内容、内存地址、指针地址,下图是打印结果结论:通过上图可以看出,3个对象指向的是同一个内存空间,所以其内容和内存地址是相同的,但是对象的指针地址是不同的%p->&p1:是对象的指针地址,%p->p1:是对象指针指向的的内存地址这就是本文需要探索的内容,alloc做了什
- 3.3 UINavigationController视图控制器 [iOS开发-Xcode教程]
互动教程网
1.本节课将为您演示,导航视图控制器的使用。首先在欢迎窗口中,点击[创建一个新项目]选项,创建一个新的项目。image2.选择创建一个简单的单视图应用。3.点击下一步按钮,进入下一步设置页面。image4.在产品名称输入框内,点击输入产品的名称。image5.点击下一步按钮,进入下一步设置页面。image6.选择项目存放目录,并点击创建按钮,完成项目的创建。7.在项目文件夹上,点击鼠标右键,弹出右
- 自定义TabBar
爱吃兔兔的胡萝卜吖
基本自带TabBar来实现自定义在iOS原生的tabBar中,能够实现按钮的点击事件,能够实现视图控制器的切换等,但是在实际工程中,对于tabBar的要求的功能往往是系统自己实现不了的,所以我们这里就需要用到自定义的tabBar了。demo:传送门目标Snip20180606_7.png分析Snip20180605_1.png实现1.建立新的项目,并去掉原有的ViewController.hVie
- iOS-半透明模态弹出框
麦穗0615
前言:学习透明模态弹出框(Controller创建弹框)目录:一、了解一下Controller的两个属性的基本知识二、基本应用三、参考文章一、了解一下Controller的两个属性的基本知识0.modalPresentationStyle&modalTransitionStyleUIModalPresentationStyleviewcontroller显示方式UIModalTransitionS
- iOS-给collection view添加header view/footer view
wsmmint
可以不像网上给出的方法那么麻烦可以直接在collectionview上面添加一个label即可在collectionview上面添加一个label如果有xib的话,需要先在collectionview那里选择sectionHeader选项在xib勾选选项
- 第三方唤醒&登陆
ceremony08
#功能说明:第三方应用或web下载/唤醒/自动登录到学习通#负责人:iOS-肖泽强,android-殷雅乐#协议版本:v1.0协议详细操作过程1.第三方应用内上架学习通2.第三方应用后台服务配置3.第三方应用用户账号对接学习通泛雅后台4.第三方应用内打开学习通完成自动登录调用方式:step2配置参数说明:fid单位id超星固定分配如:2023fidType单位类型超星固定分配如:1token用户登
- iOS-为手机添加摇一摇功能,以及 振动或者 响铃
GloryMan
title:iOS-为手机添加摇一摇功能,以及振动或者响铃date:2016-06-3016:55:10categories:CodeiOStags:AudioServicesPlaySystemSoundAudioServicesCreateSystemSoundIDtimg.jpeg//工程添加摇一摇方法#pragmamarkyaoyiyao-(BOOL)canBecomeFirstRespo
- iOS-多线程(四)-GCD定时器
xxxxxxxx_123
日常的开发中,我们经常会用到计时器。在iOS中,有三种计时器,NSTimer、CADisplayLink、dispatch_source,这三种定时器都是各有优劣。NSTimerNSTimer是使用的比较多的一种,但是精度不够,其原因如下:NSTimer加在mainrunloop中,模式是NSDefaultRunLoopMode,main负责所有主线程事务,例如UI界面的操作、复杂的运算等等,这样
- iOS-设置状态栏字体颜色的两种方案
缘來諟夢
原文http://blog.csdn.net/iosbird/article/details/52768344状态栏的字体为黑色:UIStatusBarStyleDefault状态栏的字体为白色:UIStatusBarStyleLightContent一、在info.plist中,将Viewcontroller-basedstatusbarappearance设为NO状态栏字体的颜色只由下面的属性
- iOS-仿支付宝收付款界面亮度变化+条形码二维码放大效果
Imkata
代码地址:iOS仿支付宝收付款界面亮度变化+条形码二维码放大效果一.条形码二维码放大效果支付宝的效果是点击二维码,全屏显示,并且有缓慢放大的效果,点击条形码,横向展示,缓慢放大。如果是二维码,只需要将二维码图片进行一个坐标转换,然后再使用UIView做动画,如果是条形码,还需要使用CGAffineTransformMakeRotation(M_PI*0.5);旋转,代码比较简单,可以参考如上代码。
- iOS-UIBezierPath动画之果冻动画
香橙柚子
我们今天做一个简单的贝塞尔曲线动画,做这个动画之前,我们要对UIBezierPath有简单的了解。贝塞尔曲线基础知识,可以参考下面文章:iOS-贝塞尔曲线(UIBezierPath)的使用iOS-贝塞尔曲线(UIBezierPath)详解(CAShapeLayer)效果图我们先看效果图:动画效果图动画的几个关键点ABCDQ点我们的动画其实就是ABCDQ,这五个点画的图,其中Q点是关键点,就是贝塞尔
- 6.1 使用图形上下文按一定比例缩放图片 [iOS开发-Xcode教程]
互动教程网
1.在欢迎窗口右侧的历史项目列表中,双击打开之前创建的单视图项目模板。image2.本节课将为您演示,如何通过图形上下文,实现缩放图片的功能。首先在一个空白项目中,打开视图控制器的代码文件。image3.接着开始编写代码,实现这项功能。image4.首先创建一个方法,传递一个图像参数,和一个缩放比例参数,实现将图像,缩放至指定比例的功能。image5.获得源图像的尺寸属性。image6.获得源图像
- swift-View
彭同学她同桌
swift开发语言ios
APIpropertydefinesPresentationContext在呈现子VC时是否使用当前VC的上下文,这样可以模态的呈现一些自定义效果指定当前viewController是否呈现上下文的视图控制器也就是如果VC1的definesPresentationContext=true则在VC1展现VC2时就会呈现VC1的上下文(viewController在显示时所在的容器或环境)letvie
- iOS的视图控制器pop或dismiss后,dealloc函数不被调用的几个原因
平凡的世界_风清扬
当视图控制器执行popViewControllerAnimated或dismissViewControllerAnimated方法后,dealloc函数始终未被调用时,可能是由以下几点当中的某一点或几点引起的:(1)初始化某个UIView时,使用strong修饰词修饰该view的某个属性,导致强持有当前视图控制器,从而造成循环引用,引起内存泄漏;(2)ViewController中强引用代理(de
- iOS-无限时后台
linbj
创建一个计时器放到NSRunLoop中修改UIBackgroundTaskIdentifier状态@property(nonatomic,strong)NSTimer*timer;@property(nonatomic,assign)UIBackgroundTaskIdentifierbgTask;//用于申请后台时间-(void)applicationDidEnterBackground:(UI
- iOS-代码混淆的简单demo
呵呵_7e7e
代码混淆就是将原有程序中方法名、类名或者属性名通过自定义方式给予改变,以增加app的安全性或者是为了通过AppStore的审核。经过查看资料针对修改方法名写了一个简单的demo,如有不对的地方,请各位大神不吝赐教~~参考的大神地址:https://www.jianshu.com/p/66bb2d45b3c2混淆文件解释confuse.sh脚本文件func.list需要混合的方法或者属性名codeO
- eclipse maven
IXHONG
eclipse
eclipse中使用maven插件的时候,运行run as maven build的时候报错
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
可以设一个环境变量M2_HOME指
- timer cancel方法的一个小实例
alleni123
多线程timer
package com.lj.timer;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class MyTimer extends TimerTask
{
private int a;
private Timer timer;
pub
- MySQL数据库在Linux下的安装
ducklsl
mysql
1.建好一个专门放置MySQL的目录
/mysql/db数据库目录
/mysql/data数据库数据文件目录
2.配置用户,添加专门的MySQL管理用户
>groupadd mysql ----添加用户组
>useradd -g mysql mysql ----在mysql用户组中添加一个mysql用户
3.配置,生成并安装MySQL
>cmake -D
- spring------>>cvc-elt.1: Cannot find the declaration of element
Array_06
springbean
将--------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3
- maven发布第三方jar的一些问题
cugfy
maven
maven中发布 第三方jar到nexus仓库使用的是 deploy:deploy-file命令
有许多参数,具体可查看
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
以下是一个例子:
mvn deploy:deploy-file -DgroupId=xpp3
- MYSQL下载及安装
357029540
mysql
好久没有去安装过MYSQL,今天自己在安装完MYSQL过后用navicat for mysql去厕测试链接的时候出现了10061的问题,因为的的MYSQL是最新版本为5.6.24,所以下载的文件夹里没有my.ini文件,所以在网上找了很多方法还是没有找到怎么解决问题,最后看到了一篇百度经验里有这个的介绍,按照其步骤也完成了安装,在这里给大家分享下这个链接的地址
- ios TableView cell的布局
张亚雄
tableview
cell.imageView.image = [UIImage imageNamed:[imageArray objectAtIndex:[indexPath row]]];
CGSize itemSize = CGSizeMake(60, 50);
&nbs
- Java编码转义
adminjun
java编码转义
import java.io.UnsupportedEncodingException;
/**
* 转换字符串的编码
*/
public class ChangeCharset {
/** 7位ASCII字符,也叫作ISO646-US、Unicode字符集的基本拉丁块 */
public static final Strin
- Tomcat 配置和spring
aijuans
spring
简介
Tomcat启动时,先找系统变量CATALINA_BASE,如果没有,则找CATALINA_HOME。然后找这个变量所指的目录下的conf文件夹,从中读取配置文件。最重要的配置文件:server.xml 。要配置tomcat,基本上了解server.xml,context.xml和web.xml。
Server.xml -- tomcat主
- Java打印当前目录下的所有子目录和文件
ayaoxinchao
递归File
其实这个没啥技术含量,大湿们不要操笑哦,只是做一个简单的记录,简单用了一下递归算法。
import java.io.File;
/**
* @author Perlin
* @date 2014-6-30
*/
public class PrintDirectory {
public static void printDirectory(File f
- linux安装mysql出现libs报冲突解决
BigBird2012
linux
linux安装mysql出现libs报冲突解决
安装mysql出现
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.33-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
- jedis连接池使用实例
bijian1013
redisjedis连接池jedis
实例代码:
package com.bijian.study;
import java.util.ArrayList;
import java.util.List;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoo
- 关于朋友
bingyingao
朋友兴趣爱好维持
成为朋友的必要条件:
志相同,道不合,可以成为朋友。譬如马云、周星驰一个是商人,一个是影星,可谓道不同,但都很有梦想,都要在各自领域里做到最好,当他们遇到一起,互相欣赏,可以畅谈两个小时。
志不同,道相合,也可以成为朋友。譬如有时候看到两个一个成绩很好每次考试争做第一,一个成绩很差的同学是好朋友。他们志向不相同,但他
- 【Spark七十九】Spark RDD API一
bit1129
spark
aggregate
package spark.examples.rddapi
import org.apache.spark.{SparkConf, SparkContext}
//测试RDD的aggregate方法
object AggregateTest {
def main(args: Array[String]) {
val conf = new Spar
- ktap 0.1 released
bookjovi
kerneltracing
Dear,
I'm pleased to announce that ktap release v0.1, this is the first official
release of ktap project, it is expected that this release is not fully
functional or very stable and we welcome bu
- 能保存Properties文件注释的Properties工具类
BrokenDreams
properties
今天遇到一个小需求:由于java.util.Properties读取属性文件时会忽略注释,当写回去的时候,注释都没了。恰好一个项目中的配置文件会在部署后被某个Java程序修改一下,但修改了之后注释全没了,可能会给以后的参数调整带来困难。所以要解决这个问题。
&nb
- 读《研磨设计模式》-代码笔记-外观模式-Facade
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
* 百度百科的定义:
* Facade(外观)模式为子系统中的各类(或结构与方法)提供一个简明一致的界面,
* 隐藏子系统的复杂性,使子系统更加容易使用。他是为子系统中的一组接口所提供的一个一致的界面
*
* 可简单地
- After Effects教程收集
cherishLC
After Effects
1、中文入门
http://study.163.com/course/courseMain.htm?courseId=730009
2、videocopilot英文入门教程(中文字幕)
http://www.youku.com/playlist_show/id_17893193.html
英文原址:
http://www.videocopilot.net/basic/
素
- Linux Apache 安装过程
crabdave
apache
Linux Apache 安装过程
下载新版本:
apr-1.4.2.tar.gz(下载网站:http://apr.apache.org/download.cgi)
apr-util-1.3.9.tar.gz(下载网站:http://apr.apache.org/download.cgi)
httpd-2.2.15.tar.gz(下载网站:http://httpd.apac
- Shell学习 之 变量赋值和引用
daizj
shell变量引用赋值
本文转自:http://www.cnblogs.com/papam/articles/1548679.html
Shell编程中,使用变量无需事先声明,同时变量名的命名须遵循如下规则:
首个字符必须为字母(a-z,A-Z)
中间不能有空格,可以使用下划线(_)
不能使用标点符号
不能使用bash里的关键字(可用help命令查看保留关键字)
需要给变量赋值时,可以这么写:
- Java SE 第一讲(Java SE入门、JDK的下载与安装、第一个Java程序、Java程序的编译与执行)
dcj3sjt126com
javajdk
Java SE 第一讲:
Java SE:Java Standard Edition
Java ME: Java Mobile Edition
Java EE:Java Enterprise Edition
Java是由Sun公司推出的(今年初被Oracle公司收购)。
收购价格:74亿美金
J2SE、J2ME、J2EE
JDK:Java Development
- YII给用户登录加上验证码
dcj3sjt126com
yii
1、在SiteController中添加如下代码:
/**
* Declares class-based actions.
*/
public function actions() {
return array(
// captcha action renders the CAPTCHA image displ
- Lucene使用说明
dyy_gusi
Lucenesearch分词器
Lucene使用说明
1、lucene简介
1.1、什么是lucene
Lucene是一个全文搜索框架,而不是应用产品。因此它并不像baidu或者googleDesktop那种拿来就能用,它只是提供了一种工具让你能实现这些产品和功能。
1.2、lucene能做什么
要回答这个问题,先要了解lucene的本质。实际
- 学习编程并不难,做到以下几点即可!
gcq511120594
数据结构编程算法
不论你是想自己设计游戏,还是开发iPhone或安卓手机上的应用,还是仅仅为了娱乐,学习编程语言都是一条必经之路。编程语言种类繁多,用途各 异,然而一旦掌握其中之一,其他的也就迎刃而解。作为初学者,你可能要先从Java或HTML开始学,一旦掌握了一门编程语言,你就发挥无穷的想象,开发 各种神奇的软件啦。
1、确定目标
学习编程语言既充满乐趣,又充满挑战。有些花费多年时间学习一门编程语言的大学生到
- Java面试十问之三:Java与C++内存回收机制的差别
HNUlanwei
javaC++finalize()堆栈内存回收
大家知道, Java 除了那 8 种基本类型以外,其他都是对象类型(又称为引用类型)的数据。 JVM 会把程序创建的对象存放在堆空间中,那什么又是堆空间呢?其实,堆( Heap)是一个运行时的数据存储区,从它可以分配大小各异的空间。一般,运行时的数据存储区有堆( Heap)和堆栈( Stack),所以要先看它们里面可以分配哪些类型的对象实体,然后才知道如何均衡使用这两种存储区。一般来说,栈中存放的
- 第二章 Nginx+Lua开发入门
jinnianshilongnian
nginxlua
Nginx入门
本文目的是学习Nginx+Lua开发,对于Nginx基本知识可以参考如下文章:
nginx启动、关闭、重启
http://www.cnblogs.com/derekchen/archive/2011/02/17/1957209.html
agentzh 的 Nginx 教程
http://openresty.org/download/agentzh-nginx-tutor
- MongoDB windows安装 基本命令
liyonghui160com
windows安装
安装目录:
D:\MongoDB\
新建目录
D:\MongoDB\data\db
4.启动进城:
cd D:\MongoDB\bin
mongod -dbpath D:\MongoDB\data\db
&n
- Linux下通过源码编译安装程序
pda158
linux
一、程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件:就是通常我们见到的lib目录下的文件 配置文件:这个不必多说,都知道 帮助文档:通常是我们在linux下用man命令查看的命令的文档
二、linux下程序的存放目录 linux程序的存放目录大致有三个地方: /etc, /b
- WEB开发编程的职业生涯4个阶段
shw3588
编程Web工作生活
觉得自己什么都会
2007年从学校毕业,凭借自己原创的ASP毕业设计,以为自己很厉害似的,信心满满去东莞找工作,找面试成功率确实很高,只是工资不高,但依旧无法磨灭那过分的自信,那时候什么考勤系统、什么OA系统、什么ERP,什么都觉得有信心,这样的生涯大概持续了约一年。
根本不是自己想的那样
2008年开始接触很多工作相关的东西,发现太多东西自己根本不会,都需要去学,不管是asp还是js,
- 遭遇jsonp同域下变作post请求的坑
vb2005xu
jsonp同域post
今天迁移一个站点时遇到一个坑爹问题,同一个jsonp接口在跨域时都能调用成功,但是在同域下调用虽然成功,但是数据却有问题. 此处贴出我的后端代码片段
$mi_id = htmlspecialchars(trim($_GET['mi_id ']));
$mi_cv = htmlspecialchars(trim($_GET['mi_cv ']));
贴出我前端代码片段:
$.aj