1.js调用手机或者pad终端的摄像头,拍照。
2.苹果或者安卓原生程序获取到拍照的照片路径,然后解析图片二维码,将二维码中的内容返回给前台
3.前台将内容显示在input框中。
网上有现成的来源库,自己搜索一下吧,二维码解析已经很普遍了,没啥难度。
一般扫描二维码,都是将代码写在硬件里,比如扫码q,电脑链接扫码q,直接将扫描内容显示在页面上。
大智慧bs点指标(附图)VAR4:=((HHV(HIGH,9) - CLOSE)/(HHV(HIGH,9) - LLV(LOW,9)))*(100) - 70
VAR5:=((CLOSE - LLV(LOW,60))/(HHV(HIGH,60) - LLV(LOW,60)))*(100)
VAR7:=SMA(((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100),3,1)
VAR8:=LLV(LOW,34)
VARC:=EMA(((((2)*(CLOSE) + HIGH + LOW)/(4) - VAR8)/(HHV(HIGH,34) - VAR8))*(100),8)
VARD:=EMA(VARC,5)
VARE:=((HHV(HIGH,9) - CLOSE)/(HHV(HIGH,9) - LLV(LOW,9)))*(100) - 70
VAR11:=SMA(((CLOSE - LLV(LOW,9))/(HHV(HIGH,9) - LLV(LOW,9)))*(100),3,1)
VAR12:=SMA(VAR11,3,1) + 100
VAR13:=VAR12 - SMA(VARE,9,1) + 100
VAR14:=ZIG(3,13)
建仓:=IF((VARC >17) and (VARC <59) and (VARC - VARD >= 0),10,(-10))
猎豹:=IF((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),10,45)
丰收:=IF((VARC >70) and (VARC - VARD >= 0),77,82)
牛:=IF((VAR13 >100),VAR13 - 100,0)
顶:=IF((REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),95,55)
风:=IF((VARC - VARD >0),VARC,VARD)
STICKLINE((REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),CLOSE,OPEN,5,0),Color66FF00
STICKLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),CLOSE,OPEN,5,0),coloryellow
DRAWLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.08),(REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.05),0),Linethick5,Color070084
DRAWLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.08),(REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.05),0),Linethick4,Color0000A3
DRAWLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.08),(REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.05),0),Linethick3,Color0000B7
DRAWLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.08),(REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.05),0),Linethick2,Color0000CD
DRAWLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.08),(REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.05),0),Linethick1,Color077BF3
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),ColorFF5B00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4.5,0),ColorFF6C00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),ColorFF7B00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),ColorFF9C00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),ColorFFBE00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),ColorFFCC00
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,0.5,0),ColorCCCCCC
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),Color070084
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4.5,0),Color0000A3
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),Color0000B7
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3.5,0),Color0000CD
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),Color0000E9
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),Color0754E9
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),Color076EF3
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,0.5,0),Color077BF3
STICKLINE((CLOSE >OPEN),OPEN,LOW,0.5,0),Color0726CA
STICKLINE((CLOSE >OPEN),CLOSE,HIGH,0.5,0),Color0726CA
STICKLINE((OPEN >CLOSE),CLOSE,LOW,0.5,0),ColorDE9100
STICKLINE((OPEN >CLOSE),OPEN,HIGH,0.5,0),ColorDE9100
买:DRAWTEXT((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),LOW - (LOW)*(0.05),'买'),colorred
卖:DRAWTEXT((REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),LOW - (LOW)*(0.03),'卖'),Color66FF00
STICKLINE((REF(VAR14,2) <REF(VAR14,1)) and (VAR14 <REF(VAR14,1)),CLOSE,OPEN,5,0),Color66FF00
STICKLINE((REF(VAR14,2) >REF(VAR14,1)) and (VAR14 >REF(VAR14,1)),CLOSE,OPEN,5,0),coloryellow
还有一个:
{n=18m=14i=26}
Var1:=INDEXV*INDEXC
Var2:=EMA(Var1,5)/EMA(INDEXV,5)
Var3:=(INDEXC-Var2)/Var2*100
Var4:=Var3<=-1.5 AND Var3>-100
Var5:=SUM(Var4>0,N)/SUM(Var4=0,N)
Var6:=Var5<5 AND Var5>=0.25
Var7:=(LOW+HIGH+CLOSE)/3
Var8:=(Var7-MA(Var7,M))/(0.015*AVEDEV(Var7,M))
Var9:=EMA(Var8,3)
VarA:=(HIGH+LOW+CLOSE)/3
VarB:=SUM(MAX(0,HIGH-REF(VarA,1)),I)/SUM(MAX(0,REF(VarA,1)-LOW),I)*100
VarC:=REF(MA(VarB,3),2.2)
VarD:=REF(MA(VarB,13),6.2)
VarE:=REF(MA(VarB,89),36.6)
VarF:=CROSS(VarC,VarB) AND VarB>150
DRAWTEXT(Var6 AND CROSS(Var8,Var9),LOW,'抄底')
DRAWTEXT(VarF,HIGH,'逃顶')
供参考。
指标是人写出来的。使用也要靠使用者的分析。就是说指标不是万能的。
<script type="text/javascript">function selectthis(obj){
var content=document.getElementById("content")
if(obj.checked){
var btnjian=document.createElement("input")
btnjian.type="button"
btnjian.value="-"
btnjian.setAttribute("fid",obj.id)
btnjian.onclick=function(){
var fdiv=document.getElementById("f"+this.getAttribute("fid"))
var fnum=fdiv.getElementsByTagName("input")[0]
if(fnum.value>1)fnum.value-=1
}
var btnjia=document.createElement("input")
btnjia.type="button"
btnjia.value="+"
btnjia.setAttribute("fid",obj.id)
btnjia.onclick=function(){
var fdiv=document.getElementById("f"+this.getAttribute("fid"))
var fnum=fdiv.getElementsByTagName("input")[0]
fnum.value=parseInt(fnum.value)+1
}
var num=document.createElement("input")
num.type="text"
num.value=1
var foodname=document.createTextNode(obj.value)
var box=document.createElement("div")
box.id="f"+obj.id
box.appendChild(foodname)
box.appendChild(num)
box.appendChild(btnjia)
box.appendChild(btnjian)
content.appendChild(box)
}else{
var box=document.getElementById("f"+obj.id)
content.removeChild(box)
}
}
</script>
<div id="select">
种类:<br/>
<input id="f1" type="checkbox" value="馒头" onClick="selectthis(this)" name="items">馒头<br/>
<input id="f2" type="checkbox" value="油饼" onClick="selectthis(this)" name="items">油饼<br/>
<input id="f3" type="checkbox" value="油条" onClick="selectthis(this)" name="items">油条<br/>
</div>
已选:
<div id="content"></div>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)