GVKun编程网logo

angular route $state.go('hospital_doctors', { hospital_id: hospital_id })传值页面刷新怎么保存

13

本文的目的是介绍angularroute$state.go('hospital_doctors',{hospital_id:hospital_id})传值页面刷新怎么保存的详细情况,我们将通过专业的研

本文的目的是介绍angular route $state.go('hospital_doctors', { hospital_id: hospital_id })传值页面刷新怎么保存的详细情况,我们将通过专业的研究、有关数据的分析等多种方式,同时也不会遗漏关于(in Fedora 31) building AOSP 9 - flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: failed、android 8.1 local_post_install_cmd、Android EditText Capital Characters、android – 失败[INSTALL_FAILED_UPDATE_INCOMPATIBLE]后跟DELETE_FAILED_INTERNAL_ERROR的知识。

本文目录一览:

angular route $state.go('hospital_doctors', { hospital_id: hospital_id })传值页面刷新怎么保存

angular route $state.go('hospital_doctors', { hospital_id: hospital_id })传值页面刷新怎么保存

使用angular route $state.go(''hospital_doctors'',{ hospital_id: hospital_id })传值页面刷新之后发现值不见了,即$stateParams.hospital_idnull

解决办法是

.state(''hospital_doctors'',{
    url: ''/hospital_doctors/:hospital_id'',headText: ''医院所有医生'',templateUrl: ''/assets/app/templates/hospital_doctors.html.erb'',controller: ''hospital_doctorsController''
    params: {
        hospital_id: null
    }
})

页面跳转还是按以前的来
$state.go(''hospital_doctors'',{ hospital_id: hospital_id })

接下来不管你怎么刷新值都在,因为它存在url里面了,如下
http://localhost:4000/#/manager/hospital_doctors/100

使用$stateParams.hospital_id获取即可

下面来说下嵌套路由的获取方法

.state(''doctorInfo'',{
    url: ''/doctorInfo/:doctor_id'',templateUrl: ''/assets/adminAngular/app/templates/doctorInfo/index.html'',controller: ''doctorInfoCtrl'',params:{doctor_id: null}
})
.state(''doctorInfo.personInfo'',{
    url: ''/personInfo/:doctor_id'',templateUrl: ''/assets/adminAngular/app/templates/personInfo/index.html'',controller: ''personInfoCtrl'',params:{doctor_id: null}
})
.state(''doctorInfo.statistics'',{
    url: ''/statistics/:doctor_id'',templateUrl: ''/assets/adminAngular/app/templates/statistics/index.html'',controller: ''statisticsCtrl'',params:{doctor_id: null}
})

上面的路由如果你直接使用

$state.go(''doctorInfo.personInfo'',{doctor_id: id})

那你在doctorInfoCtrl,personInfoCtrl里面使用

$stateParams.doctor_id

也是能获取到值的,路由效果是这样的

http://localhost:4000/#/doctorInfo/1/personInfo/1

看到上面的路由你应该已经不难看出通信原理了吧,即使浏览器刷新了,stateParams依然能获取到你所传递的值

api地址

(in Fedora 31) building AOSP 9 - flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: failed

(in Fedora 31) building AOSP 9 - flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: failed

# 错误
    flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion ''cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))'' failed.
    /bin/sh: line 1: 58421 Aborted                 (core dumped) /mnt/android/Android-x86---pie-x86---9.0-rc1/prebuilts/misc/linux-x86/flex/flex-2.5.39 -oscripts/kconfig/zconf.lex.c -L /mnt/android/Android-x86---pie-x86---9.0-rc1/kernel/scripts/kconfig/zconf.l
# 解决
    rm prebuilts/misc/linux-x86/flex/flex-2.5.39
    ln -s /usr/bin/flex prebuilts/misc/linux-x86/flex/flex-2.5.39
# 根据上面修改,又出现如下错误。    解决方法:rebuild the included flex,如下步骤
    out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_x86_64_core_static/gen/lex/frameworks/compile/mclinker/lib/Script/ScriptScanner.cpp:1487:8: error: member reference type ''std::istream *'' (aka ''basic_istream<char> *'') is a pointer; did you mean to use ''->''?
                        yyin.rdbuf(std::cin.rdbuf());
    out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_x86_64_core_static/gen/lex/frameworks/compile/mclinker/lib/Script/ScriptScanner.cpp:1490:9: error: member reference type ''std::ostream *'' (aka ''basic_ostream<char> *'') is a pointer; did you mean to use ''->''?
                        yyout.rdbuf(std::cout.rdbuf());
# 接着,rm prebuilts/misc/linux-x86/flex/flex-2.5.39
# rebuild the included flex

    cd prebuilts/misc/linux-x86/flex
    rm flex-2.5.39
    tar zxf flex-2.5.39.tar.gz
    cd flex-2.5.39
    ./configure
    make
    mv flex  ..
    cd ..
    rm flex-2.5.39 -rf
    mv flex flex-2.5.39
    cd /mnt/android/Android-x86---pie-x86---9.0-rc1
    m -j12 iso_img

 

android 8.1 local_post_install_cmd

android 8.1 local_post_install_cmd

android o之後local_post_install_cmd怎麽配置在bp文件呢?就大神賜教

Android EditText Capital Characters

Android EditText Capital Characters

我有一个edittext,我想要在大写字母中输入edittext中显示的任何字符.我用过这个:

edittext.setInputType(InputType.TYPE_TEXT_FLAG_CAP_CHaraCTERS);

但它没有用.我想动态地做.有任何想法吗.

解决方法

黑客的类型,试试这个:

edittext.addTextChangedListener(new TextWatcher() {

    @Override
    public void onTextChanged(CharSequence arg0,int arg1,int arg2,int arg3) {            

    }
        @Override
    public void beforeTextChanged(CharSequence arg0,int arg3) {             
    }
    @Override
    public void afterTextChanged(Editable arg0) {
          String s=arg0.toString();
      if(!s.equals(s.toupperCase()))
      {
         s=s.toupperCase();
         edittext.setText(s);
       edittext.setSelection(s.length());
      }
    }
});

这应该工作(没有时间检查)尝试在afterTextChanged中将行放在onTextChanged中,如果这不起作用..

android – 失败[INSTALL_FAILED_UPDATE_INCOMPATIBLE]后跟DELETE_FAILED_INTERNAL_ERROR

android – 失败[INSTALL_FAILED_UPDATE_INCOMPATIBLE]后跟DELETE_FAILED_INTERNAL_ERROR

当我试图在nexus5设备上运行应用程序时,android studio打开错误窗口,显示“安装失败并显示消息INSTALL_Failed_CONFLICTING_PROVIDER”,而且我问我是否要卸载现有应用程序,即使它在设备上不存在.
此外,运行窗口显示“Failure [INSTALL_Failed_CONFLICTING_PROVIDER]”

点击确定后,我进入运行窗口:

“DEVICE SHELL COMMAND:pm uninstall com.app.app
DELETE_Failed_INTERNAL_ERROR”

谢谢您的帮助!

解决方法

我注意到在使用Marshmallow( Android 6.0)时,新的“com.google.android.gms”播放服务版本8.3.0存在问题.
我建议使用8.1.0版本 – 这解决了我的问题.

例如:

dependencies {
        compile filetree(include: [''*.jar''],dir: ''libs'')
        compile ''com.google.android.gms:play-services-gcm:8.3.0''
}

需要更改为:

dependencies {
            compile filetree(include: [''*.jar''],dir: ''libs'')
            compile ''com.google.android.gms:play-services-gcm:8.1.0''
    }

在build.gradle文件中

今天关于angular route $state.go('hospital_doctors', { hospital_id: hospital_id })传值页面刷新怎么保存的讲解已经结束,谢谢您的阅读,如果想了解更多关于(in Fedora 31) building AOSP 9 - flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: failed、android 8.1 local_post_install_cmd、Android EditText Capital Characters、android – 失败[INSTALL_FAILED_UPDATE_INCOMPATIBLE]后跟DELETE_FAILED_INTERNAL_ERROR的相关知识,请在本站搜索。

本文标签: