我必须使用页面,首先是可排序列表(li),它使用了以下Javascripts:
<script type="text/javascript" src="http://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="/theme/mmenu/dist/jquery.mmenu.all.js"></script>
mmenu的第二页,其中包含以下jquery:
import sys
import argparse
import cv2
print(cv2.__version__)
def extractImages(pathIn, pathOut):
count = 0
vidcap = cv2.VideoCapture(pathIn)
success,image = vidcap.read()
success = True
while success:
vidcap.set(cv2.CAP_PROP_POS_MSEC,(count*1000)) # added this line
success,image = vidcap.read()
print ('Read a new frame: ', success)
cv2.imwrite( pathOut + "\\frame%d.jpg" % count, image) # save frame as JPEG file
count = count + 1
if __name__=="__main__":
print("aba")
a = argparse.ArgumentParser()
a.add_argument("--pathIn", help="path to video")
a.add_argument("--pathOut", help="path to images")
args = a.parse_args()
print(args)
extractImages(args.pathIn, args.pathOut)
当我想将两个脚本添加到单个页面(其中菜单和可排序工作)时,出现一些错误,因为当我删除Jquerys of sortable然后mmnue将起作用,当我删除Jquery of sortable然后mmenu不会工作!
那么请问如何让它们在一个页面上工作?
答案 0 :(得分:2)
使用let appVer: AnyObject? = NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"]
类似的东西:
jQuery.noConflict()
有关更多示例,请参阅此示例:http://blog.nemikor.com/2009/10/03/using-multiple-versions-of-jquery/