03 2018 档案
摘要:1. 1.生成相关的自路由模块 ng g component seller 2. 3.在子路由的父级页面新增链接自己页面跳转的按钮 4.
阅读全文
摘要:1.什么是参数快照,页面切换路由时如果切换到同一页面,参数值不会跟着变化 2.参数订阅切换到不同路由页面的参数也随之变化 3 4
阅读全文
摘要:1.生成路由项目 ng new router --routing 2.参数的传递 3.接受参数 4展示参数
阅读全文
摘要:<ul id="suggest_content_box"> <li class="suggest_content_box_item" ng-repeat="i in contents_s"> <div class="col-md-1 col-sm-1 col-xs-4"> <img class="t
阅读全文
摘要:1.ng new router --routing // 3.生成app对应的文件 ng g component home 4.配置路由 ////////////////// 在当前目录使用npm run start即可运行路由
阅读全文
摘要:1.通过使用命令行工具生成app组件 ng g component footer 生成一个名字为footer的组件
阅读全文
摘要:1.安装jquery 在当前文件目录下使用命令行工具 npm install jquery --save这样就在node_moudle文件加下生成了一个jquery文件夹 2.安装bootstarp文件,在当前文件目录下使用命令行工具 npm install bootstrap--save这样就在n
阅读全文
摘要:恢复内容开始 1.通过 npm install -g @angular/cli 来实现angular4的安装 输入ng -v看一下是否成功,如果安装成功了但是ng -v不起作用,那没就需要配置环境变量了。 在安装之前为了防止之前安装过对其产生影响npm uninstall -g angular-cl
阅读全文
摘要:<form id="form" class="input_group"> <label for="optionsRadios1"> <input type="radio" name="optionsRadios" ng-model="static" id="optionsRadios1" value
阅读全文
摘要:在angularjs中通过append的方式循环追加元素,设置的ng-click将会不起作用,这时我们要讲ng-click更改为onclick=“demo(this)”的形式,函数卸载模型的后面而不是里面,函数通过$(a)的形式获取到当前的元素
阅读全文
摘要:$http({ method: "GET",//请求方式 url: "http://localHost:8080/jeewx/activeController.do?cancelTags&userId="+userId+"&relId="+activeId+"&tagsType=2"}).succe
阅读全文
摘要:<span ng-if="j.curTagsCountC==1"> -1</span><span ng-if="j.curTagsCountC==0"> -0</span>
阅读全文
摘要:<span class="liu_autoer_float_right" onclick="demo(this)" > </span> <script type="text/javascript">//这里是留言点赞功能 function demo(a){ console.log($(a).attr
阅读全文
摘要:result//表示返回的结果 var result_succcess = (eval("("+result+")"));
阅读全文
摘要:<div style="width:0;height:0;overflow: hidden;border-top:4px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;bo
阅读全文
摘要:SEO相关的HTML标签1.title <title>页面的标题</title>,必须有的东西,非常之重要 2.keyrowds <meta name="keywords" content="keyWord1,keyWord2"/>,定义为搜索引擎提供的关键字列表,页面的呃主关键词都可以列举在这里
阅读全文
摘要:网页预载就是网页提前加载,这个页面用户必须要预览的 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .chromeframe { margin: 0.2em 0; ba
阅读全文
摘要:<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Geolocation Components Demo - zoom effect</title> <meta name="
阅读全文
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><video id="video" width="640" height="480" autoplay></vi
阅读全文
摘要:https://www.hcharts.cn/demo/highcharts 兼容性很强,甚至支持ie6+
阅读全文
摘要://方法一#box{ width:120px; height:160px; border:1px solid red; position:absolute; top:50%; left:50%; margin-left:-60px; margin-top:-80px;}//方法二 #box{ wid
阅读全文

浙公网安备 33010602011771号