如何组合两个脚本

时间:2015-07-29 05:52:36

标签: javascript jquery ajax codeigniter

 I/libSDL  (23145): SDL_SetVideoMode(): application requested mode 480x744
    I/python  (23145): [INFO              ] [GL          ] OpenGL version <OpenGL ES 3.0 V@66.0 AU@04.04.04.048.076 (CL@)>
    I/python  (23145): [INFO              ] [GL          ] OpenGL vendor <Qualcomm>
    I/python  (23145): [INFO              ] [GL          ] OpenGL renderer <Adreno (TM) 305>
    I/python  (23145): [INFO              ] [GL          ] OpenGL parsed version: 3, 0
    I/python  (23145): [INFO              ] [GL          ] Texture max size <4096>
    I/MultiDex(23400): VM with version 1.6.0 does not have multidex support
    I/MultiDex(23400): install
    I/python  (23145): [INFO              ] [GL          ] Texture max units <16>
    I/MultiDex(23400): MultiDexExtractor.load(/data/app/com.google.android.gms-1.apk, false)
    I/MultiDex(23400): loading existing secondary dex files
    I/MultiDex(23400): load found 3 secondary dex files
    I/MultiDex(23400): install done
    I/python  (23145): [INFO              ] [Support     ] Android install hooks
    I/python  (23145): [INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
    I/python  (23145): [INFO              ] [Text        ] Provider: pygame
    I/ActivityManager( 1001): Resuming delayed broadcast
    I/Process (23264): Sending signal. PID: 23264 SIG: 3
    I/dalvikvm(23264): threadid=3: reacting to signal 3
    I/ProviderInstaller(23400): Insert disabled by gate 'gms:security:enable_conscrypt_in_gms_application'
    I/ActivityManager( 1001): Start proc com.google.android.apps.magazines for broadcast com.google.android.apps.magazines/com.google.apps.dots.android.app.receiver.FirstInstallNotificationReceiver: pid=23417 uid=10119 gids={50119, 3003, 1028, 1015}
    I/python  (23145):  Traceback (most recent call last):
    I/python  (23145):    File "/root/.buildozer/android/app/main.py", line 41, in <module>
    I/python  (23145):  ImportError: No module named processing
    I/python  (23145): Python for android ended.
    I/AndroidRuntime(23145): VM exiting with result code 0, cleanup skipped.
    I/WindowState( 1001): WIN DEATH: Window{422d0570 u0 emailbomber.technhack.i

第一个脚本显示警报,但第二个脚本显示大小超过1MB的预览。

2 个答案:

答案 0 :(得分:0)

您可以传递鼠标事件

onmouseover='firstscriptFuncname'&lt;空间&gt; 'second script func name'

像这样

onmouseover='readURL(input) readURL(input)'

不要使用逗号分隔,只有空格就足够了。

答案 1 :(得分:0)

DEMO

我认为你可以做这样的事情。还有其他方法可以帮助您实现这一目标。

// ===========for checking the size of an image
$(document).on('change', '#images', function() {
    files = this.files;
    size = files[0].size;
    //max size 50kb => 50*1000
    if (size < 1000141) {
        readURL(this);
        return true;
    }
    alert('File size greater than 1MB cannot be uploaded');
    return false;
});